const isObjectWithProperties = ( object , props ) => { return ( object && props . every ( x => Object . getOwnPropertyNames ( object ) . includes ( x ) ) ) ; } ; export default isObjectWithProperties ;