Add files
This commit is contained in:
commit
bb80829159
18195 changed files with 2122994 additions and 0 deletions
45
509bba0_unpacked_with_node_modules/~/hasown/index.js
generated
Executable file
45
509bba0_unpacked_with_node_modules/~/hasown/index.js
generated
Executable file
|
@ -0,0 +1,45 @@
|
|||
'use strict'
|
||||
|
||||
var hasOwn = Object.prototype.hasOwnProperty
|
||||
|
||||
function curry(fn, n){
|
||||
|
||||
if (typeof n !== 'number'){
|
||||
n = fn.length
|
||||
}
|
||||
|
||||
function getCurryClosure(prevArgs){
|
||||
|
||||
function curryClosure() {
|
||||
|
||||
var len = arguments.length
|
||||
var args = [].concat(prevArgs)
|
||||
|
||||
if (len){
|
||||
args.push.apply(args, arguments)
|
||||
}
|
||||
|
||||
if (args.length < n){
|
||||
return getCurryClosure(args)
|
||||
}
|
||||
|
||||
return fn.apply(this, args)
|
||||
}
|
||||
|
||||
return curryClosure
|
||||
}
|
||||
|
||||
return getCurryClosure([])
|
||||
}
|
||||
|
||||
|
||||
module.exports = curry(function(object, property){
|
||||
return hasOwn.call(object, property)
|
||||
})
|
||||
|
||||
|
||||
//////////////////
|
||||
// WEBPACK FOOTER
|
||||
// ./~/hasown/index.js
|
||||
// module id = 961
|
||||
// module chunks = 4
|
Loading…
Add table
Add a link
Reference in a new issue