mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 09:25:15 +00:00
1 line
1.6 KiB
JSON
1 line
1.6 KiB
JSON
{"ast":null,"code":"'use strict';\n\nvar toStr = Object.prototype.toString;\n\nmodule.exports = function isArguments(value) {\n var str = toStr.call(value);\n var isArgs = str === '[object Arguments]';\n\n if (!isArgs) {\n isArgs = str !== '[object Array]' && value !== null && typeof value === 'object' && typeof value.length === 'number' && value.length >= 0 && toStr.call(value.callee) === '[object Function]';\n }\n\n return isArgs;\n};","map":{"version":3,"sources":["/app/node_modules/object-keys/isArguments.js"],"names":["toStr","Object","prototype","toString","module","exports","isArguments","value","str","call","isArgs","length","callee"],"mappings":"AAAA;;AAEA,IAAIA,KAAK,GAAGC,MAAM,CAACC,SAAP,CAAiBC,QAA7B;;AAEAC,MAAM,CAACC,OAAP,GAAiB,SAASC,WAAT,CAAqBC,KAArB,EAA4B;AAC5C,MAAIC,GAAG,GAAGR,KAAK,CAACS,IAAN,CAAWF,KAAX,CAAV;AACA,MAAIG,MAAM,GAAGF,GAAG,KAAK,oBAArB;;AACA,MAAI,CAACE,MAAL,EAAa;AACZA,IAAAA,MAAM,GAAGF,GAAG,KAAK,gBAAR,IACRD,KAAK,KAAK,IADF,IAER,OAAOA,KAAP,KAAiB,QAFT,IAGR,OAAOA,KAAK,CAACI,MAAb,KAAwB,QAHhB,IAIRJ,KAAK,CAACI,MAAN,IAAgB,CAJR,IAKRX,KAAK,CAACS,IAAN,CAAWF,KAAK,CAACK,MAAjB,MAA6B,mBAL9B;AAMA;;AACD,SAAOF,MAAP;AACA,CAZD","sourcesContent":["'use strict';\n\nvar toStr = Object.prototype.toString;\n\nmodule.exports = function isArguments(value) {\n\tvar str = toStr.call(value);\n\tvar isArgs = str === '[object Arguments]';\n\tif (!isArgs) {\n\t\tisArgs = str !== '[object Array]' &&\n\t\t\tvalue !== null &&\n\t\t\ttypeof value === 'object' &&\n\t\t\ttypeof value.length === 'number' &&\n\t\t\tvalue.length >= 0 &&\n\t\t\ttoStr.call(value.callee) === '[object Function]';\n\t}\n\treturn isArgs;\n};\n"]},"metadata":{},"sourceType":"script"} |