Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Create a new object where the prototype is {0:10}

 let x = {};
 x.prototype = _.create(array.prototype, [10]);
/*the first parameter does not have to be a prototype(?)*/
Source by codefantasy.org #
 
PREVIOUS NEXT
Tagged: #Create #object #prototype
ADD COMMENT
Topic
Name
8+5 =