ES6 adds many new APIs to native objects such as Object, Array, String, Number, and Math. Object. prototype. proto: the object has the property proto, which can be called implicit original... ES6 adds many new APIs to native objects such as Object, Array, String, Number, and Math.
Object
Object. prototype. proto: an object has the property proto, which can be called an implicit prototype. the implicit prototype of an object directs to the prototype of the constructor that constructs the object, this ensures that the instance can access the attributes and methods defined in the constructor prototype.
Object. assign (target ,... Sources): You can copy the enumerated attributes of any source object to the target object, and then return the target object.
Object. is (value1, value2) is used to determine whether two values are the same value.
Object. setPrototypeOf (obj, prototype) sets the Prototype of a specified Object to another Object or null (the internal attribute of the Object [[prototype ).
APIs not currently supported by applets
Array. prototype. values ()
The above is a detailed description of ES6's new feature development applet (5). For more information, see other related articles in the first PHP community!