Tests to see if all of the given property names are owned by the specified object.

This function is valid in v2.8.0 to v2.24.2. This function has been downloaded 40 times.


{Object|null|undefined} obj
If undefined or null, a partial function waiting for this value will be returned. Otherwise this will be the object from which the specified keys will be deleted.
{Array} keys
Array of keys to see if they are owned by obj.


If obj is undefined or null this will be a partial function which will simply accept the given obj. The return value of the partial function is the same as the return value of this function in the case that obj is not undefined or null. If all of the keys are owned by obj, true will be returned, otherwise false.

Required Function

This function directly requires the following function which is included automatically:

  • has()
    Every object descended from Object inherits the hasOwnProperty method. This method can be used to determine whether an object has the specified property as a direct property of that object; unlike the in operator, this method does not check down the object's prototype chain.