Add files
This commit is contained in:
commit
bb80829159
18195 changed files with 2122994 additions and 0 deletions
35
509bba0_unpacked_with_node_modules/~/newify/getInstantiatorFunction.js
generated
Executable file
35
509bba0_unpacked_with_node_modules/~/newify/getInstantiatorFunction.js
generated
Executable file
|
@ -0,0 +1,35 @@
|
|||
module.exports = function(){
|
||||
|
||||
'use strict';
|
||||
|
||||
var fns = {}
|
||||
|
||||
return function(len){
|
||||
|
||||
if ( ! fns [len ] ) {
|
||||
|
||||
var args = []
|
||||
var i = 0
|
||||
|
||||
for (; i < len; i++ ) {
|
||||
args.push( 'a[' + i + ']')
|
||||
}
|
||||
|
||||
fns[len] = new Function(
|
||||
'c',
|
||||
'a',
|
||||
'return new c(' + args.join(',') + ')'
|
||||
)
|
||||
}
|
||||
|
||||
return fns[len]
|
||||
}
|
||||
|
||||
}()
|
||||
|
||||
|
||||
//////////////////
|
||||
// WEBPACK FOOTER
|
||||
// ./~/newify/getInstantiatorFunction.js
|
||||
// module id = 2619
|
||||
// module chunks = 4
|
12
509bba0_unpacked_with_node_modules/~/newify/index.js
generated
Executable file
12
509bba0_unpacked_with_node_modules/~/newify/index.js
generated
Executable file
|
@ -0,0 +1,12 @@
|
|||
var getInstantiatorFunction = require('./getInstantiatorFunction')
|
||||
|
||||
module.exports = function(fn, args){
|
||||
return getInstantiatorFunction(args.length)(fn, args)
|
||||
}
|
||||
|
||||
|
||||
//////////////////
|
||||
// WEBPACK FOOTER
|
||||
// ./~/newify/index.js
|
||||
// module id = 2620
|
||||
// module chunks = 4
|
Loading…
Add table
Add a link
Reference in a new issue