String object array common methods

Objects

    obj.hasOwnProperty (property name) traversal himself so property to see if there is, if there is ture, no false.

 

    let the child object = Object.create (parent); 01 empty child objects to create 02 child objects inherit the parent object of some members of the 03 sub-object success, first with its own members, not covered

 

    Method for Object.assign source object (source) of all enumerated attribute, copied to the target object (target). It requires at least two object as a parameter, the first parameter is the target object, the source object parameters are behind.

Guess you like

Origin www.cnblogs.com/javascript9527/p/11387923.html