is-array-like-x
Advanced tools
Comparing version
29
index.js
@@ -25,20 +25,3 @@ /** | ||
* | ||
* <h2>ECMAScript compatibility shims for legacy JavaScript engines</h2> | ||
* `es5-shim.js` monkey-patches a JavaScript context to contain all EcmaScript 5 | ||
* methods that can be faithfully emulated with a legacy JavaScript engine. | ||
* | ||
* `es5-sham.js` monkey-patches other ES5 methods as closely as possible. | ||
* For these methods, as closely as possible to ES5 is not very close. | ||
* Many of these shams are intended only to allow code to be written to ES5 | ||
* without causing run-time errors in older engines. In many cases, | ||
* this means that these shams cause many ES5 methods to silently fail. | ||
* Decide carefully whether this is what you want. Note: es5-sham.js requires | ||
* es5-shim.js to be able to work properly. | ||
* | ||
* `json3.js` monkey-patches the EcmaScript 5 JSON implimentation faithfully. | ||
* | ||
* `es6.shim.js` provides compatibility shims so that legacy JavaScript engines | ||
* behave as closely as possible to ECMAScript 6 (Harmony). | ||
* | ||
* @version 1.1.0 | ||
* @version 1.1.1 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -50,12 +33,4 @@ * @copyright Xotic750 | ||
/* jslint maxlen:80, es6:true, white:true */ | ||
/* eslint strict: 1 */ | ||
/* jshint bitwise:true, camelcase:true, curly:true, eqeqeq:true, forin:true, | ||
freeze:true, futurehostile:true, latedef:true, newcap:true, nocomma:true, | ||
nonbsp:true, singleGroups:true, strict:true, undef:true, unused:true, | ||
es3:true, esnext:true, plusplus:true, maxparams:2, maxdepth:1, | ||
maxstatements:2, maxcomplexity:2 */ | ||
/* eslint strict: 1, max-statements: 1 */ | ||
/* global module */ | ||
@@ -62,0 +37,0 @@ |
@@ -26,20 +26,3 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.returnExports = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){ | ||
* | ||
* <h2>ECMAScript compatibility shims for legacy JavaScript engines</h2> | ||
* `es5-shim.js` monkey-patches a JavaScript context to contain all EcmaScript 5 | ||
* methods that can be faithfully emulated with a legacy JavaScript engine. | ||
* | ||
* `es5-sham.js` monkey-patches other ES5 methods as closely as possible. | ||
* For these methods, as closely as possible to ES5 is not very close. | ||
* Many of these shams are intended only to allow code to be written to ES5 | ||
* without causing run-time errors in older engines. In many cases, | ||
* this means that these shams cause many ES5 methods to silently fail. | ||
* Decide carefully whether this is what you want. Note: es5-sham.js requires | ||
* es5-shim.js to be able to work properly. | ||
* | ||
* `json3.js` monkey-patches the EcmaScript 5 JSON implimentation faithfully. | ||
* | ||
* `es6.shim.js` provides compatibility shims so that legacy JavaScript engines | ||
* behave as closely as possible to ECMAScript 6 (Harmony). | ||
* | ||
* @version 1.1.0 | ||
* @version 1.1.1 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -51,12 +34,4 @@ * @copyright Xotic750 | ||
/* jslint maxlen:80, es6:true, white:true */ | ||
/* eslint strict: 1 */ | ||
/* jshint bitwise:true, camelcase:true, curly:true, eqeqeq:true, forin:true, | ||
freeze:true, futurehostile:true, latedef:true, newcap:true, nocomma:true, | ||
nonbsp:true, singleGroups:true, strict:true, undef:true, unused:true, | ||
es3:true, esnext:true, plusplus:true, maxparams:2, maxdepth:1, | ||
maxstatements:2, maxcomplexity:2 */ | ||
/* eslint strict: 1, max-statements: 1 */ | ||
/* global module */ | ||
@@ -117,23 +92,7 @@ | ||
* | ||
* hasSymbolSupport module. Tests if `Symbol` exists and creates the correct | ||
* type. | ||
* Tests if `Symbol` exists and creates the correct type. | ||
* | ||
* <h2>ECMAScript compatibility shims for legacy JavaScript engines</h2> | ||
* `es5-shim.js` monkey-patches a JavaScript context to contain all EcmaScript 5 | ||
* methods that can be faithfully emulated with a legacy JavaScript engine. | ||
* Requires ES3 or above. | ||
* | ||
* `es5-sham.js` monkey-patches other ES5 methods as closely as possible. | ||
* For these methods, as closely as possible to ES5 is not very close. | ||
* Many of these shams are intended only to allow code to be written to ES5 | ||
* without causing run-time errors in older engines. In many cases, | ||
* this means that these shams cause many ES5 methods to silently fail. | ||
* Decide carefully whether this is what you want. Note: es5-sham.js requires | ||
* es5-shim.js to be able to work properly. | ||
* | ||
* `json3.js` monkey-patches the EcmaScript 5 JSON implimentation faithfully. | ||
* | ||
* `es6.shim.js` provides compatibility shims so that legacy JavaScript engines | ||
* behave as closely as possible to ECMAScript 6 (Harmony). | ||
* | ||
* @version 1.1.0 | ||
* @version 1.1.1 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -145,12 +104,4 @@ * @copyright Xotic750 | ||
/* jslint maxlen:80, es6:true, white:true */ | ||
/* eslint strict: 1, symbol-description: 1 */ | ||
/* jshint bitwise:true, camelcase:true, curly:true, eqeqeq:true, forin:true, | ||
freeze:true, futurehostile:true, latedef:true, newcap:true, nocomma:true, | ||
nonbsp:true, singleGroups:true, strict:true, undef:true, unused:true, | ||
es3:false, esnext:true, plusplus:true, maxparams:1, maxdepth:1, | ||
maxstatements:3, maxcomplexity:2 */ | ||
/* eslint strict: 1, max-statements: 1, symbol-description: 1 */ | ||
/* global module */ | ||
@@ -196,22 +147,9 @@ | ||
* | ||
* hasToStringTag tests if @@toStringTag is supported. `true` if supported. | ||
* Tests if ES6 @@toStringTag is supported. | ||
* | ||
* <h2>ECMAScript compatibility shims for legacy JavaScript engines</h2> | ||
* `es5-shim.js` monkey-patches a JavaScript context to contain all EcmaScript 5 | ||
* methods that can be faithfully emulated with a legacy JavaScript engine. | ||
* Requires ES3 or above. | ||
* | ||
* `es5-sham.js` monkey-patches other ES5 methods as closely as possible. | ||
* For these methods, as closely as possible to ES5 is not very close. | ||
* Many of these shams are intended only to allow code to be written to ES5 | ||
* without causing run-time errors in older engines. In many cases, | ||
* this means that these shams cause many ES5 methods to silently fail. | ||
* Decide carefully whether this is what you want. Note: es5-sham.js requires | ||
* es5-shim.js to be able to work properly. | ||
* @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-@@tostringtag|26.3.1 @@toStringTag} | ||
* | ||
* `json3.js` monkey-patches the EcmaScript 5 JSON implimentation faithfully. | ||
* | ||
* `es6.shim.js` provides compatibility shims so that legacy JavaScript engines | ||
* behave as closely as possible to ECMAScript 6 (Harmony). | ||
* | ||
* @version 1.1.0 | ||
* @version 1.1.1 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -223,12 +161,4 @@ * @copyright Xotic750 | ||
/* jslint maxlen:80, es6:true, white:true */ | ||
/* eslint strict: 1 */ | ||
/* jshint bitwise:true, camelcase:true, curly:true, eqeqeq:true, forin:true, | ||
freeze:true, futurehostile:true, latedef:true, newcap:true, nocomma:true, | ||
nonbsp:true, singleGroups:true, strict:true, undef:true, unused:true, | ||
es3:false, esnext:true, plusplus:true, maxparams:1, maxdepth:1, | ||
maxstatements:3, maxcomplexity:2 */ | ||
/* eslint strict: 1, max-statements: 1 */ | ||
/* global module */ | ||
@@ -274,22 +204,5 @@ | ||
* | ||
* isFunction module. Determine whether a given value is a function object. | ||
* Determine whether a given value is a function object. | ||
* | ||
* <h2>ECMAScript compatibility shims for legacy JavaScript engines</h2> | ||
* `es5-shim.js` monkey-patches a JavaScript context to contain all EcmaScript 5 | ||
* methods that can be faithfully emulated with a legacy JavaScript engine. | ||
* | ||
* `es5-sham.js` monkey-patches other ES5 methods as closely as possible. | ||
* For these methods, as closely as possible to ES5 is not very close. | ||
* Many of these shams are intended only to allow code to be written to ES5 | ||
* without causing run-time errors in older engines. In many cases, | ||
* this means that these shams cause many ES5 methods to silently fail. | ||
* Decide carefully whether this is what you want. Note: es5-sham.js requires | ||
* es5-shim.js to be able to work properly. | ||
* | ||
* `json3.js` monkey-patches the EcmaScript 5 JSON implimentation faithfully. | ||
* | ||
* `es6.shim.js` provides compatibility shims so that legacy JavaScript engines | ||
* behave as closely as possible to ECMAScript 6 (Harmony). | ||
* | ||
* @version 1.1.0 | ||
* @version 1.1.1 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -301,12 +214,4 @@ * @copyright Xotic750 | ||
/* jslint maxlen:80, es6:true, white:true */ | ||
/* eslint strict: 1 */ | ||
/* jshint bitwise:true, camelcase:true, curly:true, eqeqeq:true, forin:true, | ||
freeze:true, futurehostile:true, latedef:true, newcap:true, nocomma:true, | ||
nonbsp:true, singleGroups:true, strict:true, undef:true, unused:true, | ||
es3:false, esnext:true, plusplus:true, maxparams:1, maxdepth:1, | ||
maxstatements:3, maxcomplexity:2 */ | ||
/* eslint strict: 1, max-statements: 1 */ | ||
/* global module */ | ||
@@ -324,2 +229,3 @@ | ||
var genTag = '[object GeneratorFunction]'; | ||
var asyncTag = '[object AsyncFunction]'; | ||
@@ -334,3 +240,3 @@ /** | ||
*/ | ||
var tryFunctionObject = function (value) { | ||
var tryFunctionObject = function funcToString(value) { | ||
try { | ||
@@ -372,3 +278,3 @@ fToString.call(value); | ||
var strTag = toStringTag(value); | ||
return strTag === funcTag || strTag === genTag; | ||
return strTag === funcTag || strTag === genTag || strTag === asyncTag; | ||
}; | ||
@@ -400,22 +306,5 @@ }()); | ||
* | ||
* isNil module. | ||
* Checks if `value` is `null` or `undefined`. | ||
* | ||
* <h2>ECMAScript compatibility shims for legacy JavaScript engines</h2> | ||
* `es5-shim.js` monkey-patches a JavaScript context to contain all EcmaScript 5 | ||
* methods that can be faithfully emulated with a legacy JavaScript engine. | ||
* | ||
* `es5-sham.js` monkey-patches other ES5 methods as closely as possible. | ||
* For these methods, as closely as possible to ES5 is not very close. | ||
* Many of these shams are intended only to allow code to be written to ES5 | ||
* without causing run-time errors in older engines. In many cases, | ||
* this means that these shams cause many ES5 methods to silently fail. | ||
* Decide carefully whether this is what you want. Note: es5-sham.js requires | ||
* es5-shim.js to be able to work properly. | ||
* | ||
* `json3.js` monkey-patches the EcmaScript 5 JSON implimentation faithfully. | ||
* | ||
* `es6.shim.js` provides compatibility shims so that legacy JavaScript engines | ||
* behave as closely as possible to ECMAScript 6 (Harmony). | ||
* | ||
* @version 1.1.0 | ||
* @version 1.1.1 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -427,12 +316,4 @@ * @copyright Xotic750 | ||
/* jslint maxlen:80, es6:true, white:true */ | ||
/* eslint strict: 1 */ | ||
/* jshint bitwise:true, camelcase:true, curly:true, eqeqeq:true, forin:true, | ||
freeze:true, futurehostile:true, latedef:true, newcap:true, nocomma:true, | ||
nonbsp:true, singleGroups:true, strict:true, undef:true, unused:true, | ||
es3:false, esnext:true, plusplus:true, maxparams:1, maxdepth:1, | ||
maxstatements:3, maxcomplexity:2 */ | ||
/* eslint strict: 1, max-statements: 1 */ | ||
/* global module */ | ||
@@ -582,35 +463,9 @@ | ||
* | ||
* Get an object's @@toStringTag. Includes fixes to correct ES3 differences | ||
* for the following. | ||
* - undefined => '[object Undefined]' | ||
* - null => '[object Null]' | ||
* Get an object's ES6 @@toStringTag. | ||
* | ||
* No other fixes are included, so legacy `arguments` will | ||
* give `[object Object]`, and many older native objects | ||
* give `[object Object]`. There are also other environmental bugs | ||
* for example `RegExp` gives `[object Function]` and `Uint8Array` | ||
* gives `[object Object]` on certain engines. While these and more could | ||
* be fixed, it was decided that this should be a very raw version and it | ||
* is left to the coder to use other `is` implimentations for detection. | ||
* It is also worth noting that as of ES6 `Symbol.toStringTag` can be set on | ||
* an object and therefore can report any string that it wishes. | ||
* Requires ES3 or above. | ||
* | ||
* <h2>ECMAScript compatibility shims for legacy JavaScript engines</h2> | ||
* `es5-shim.js` monkey-patches a JavaScript context to contain all EcmaScript 5 | ||
* methods that can be faithfully emulated with a legacy JavaScript engine. | ||
* @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring|19.1.3.6 Object.prototype.toString ( )} | ||
* | ||
* `es5-sham.js` monkey-patches other ES5 methods as closely as possible. | ||
* For these methods, as closely as possible to ES5 is not very close. | ||
* Many of these shams are intended only to allow code to be written to ES5 | ||
* without causing run-time errors in older engines. In many cases, | ||
* this means that these shams cause many ES5 methods to silently fail. | ||
* Decide carefully whether this is what you want. Note: es5-sham.js requires | ||
* es5-shim.js to be able to work properly. | ||
* | ||
* `json3.js` monkey-patches the EcmaScript 5 JSON implimentation faithfully. | ||
* | ||
* `es6.shim.js` provides compatibility shims so that legacy JavaScript engines | ||
* behave as closely as possible to ECMAScript 6 (Harmony). | ||
* | ||
* @version 1.1.0 | ||
* @version 1.1.1 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -622,12 +477,4 @@ * @copyright Xotic750 | ||
/* jslint maxlen:80, es6:true, white:true */ | ||
/* eslint strict: 1 */ | ||
/* jshint bitwise:true, camelcase:true, curly:true, eqeqeq:true, forin:true, | ||
freeze:true, futurehostile:true, latedef:true, newcap:true, nocomma:true, | ||
nonbsp:true, singleGroups:true, strict:true, undef:true, unused:true, | ||
es3:false, esnext:true, plusplus:true, maxparams:1, maxdepth:1, | ||
maxstatements:3, maxcomplexity:2 */ | ||
/* eslint strict: 1, max-statements: 1 */ | ||
/* global module */ | ||
@@ -639,3 +486,2 @@ | ||
var pToString = Object.prototype.toString; | ||
var isNull = _dereq_('lodash.isnull'); | ||
@@ -664,3 +510,3 @@ var isUndefined = _dereq_('validate.io-undefined'); | ||
} | ||
return pToString.call(value); | ||
return Object.prototype.toString.call(value); | ||
}; | ||
@@ -667,0 +513,0 @@ }()); |
@@ -1,2 +0,2 @@ | ||
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,n.returnExports=t()}}(function(){return function e(t,n,i){function s(r,u){if(!n[r]){if(!t[r]){var f="function"==typeof require&&require;if(!u&&f)return f(r,!0);if(o)return o(r,!0);var c=new Error("Cannot find module '"+r+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[r]={exports:{}};t[r][0].call(l.exports,function(n){var e=t[r][1][n];return s(e?e:n)},l,l.exports,e,t,n,i)}return n[r].exports}for(var o="function"==typeof require&&require,r=0;r<i.length;r++)s(i[r]);return s}({1:[function(t,n,e){!function(){"use strict";var e=t("is-nil-x"),i=t("is-function-x"),o=t("lodash.islength");n.exports=function isArrayLike(t){return!e(t)&&!i(t)&&o(t.length)}}()},{"is-function-x":4,"is-nil-x":5,"lodash.islength":7}],2:[function(t,n,e){!function(){"use strict";n.exports="function"==typeof Symbol&&"symbol"==typeof Symbol()}()},{}],3:[function(t,n,e){!function(){"use strict";n.exports=t("has-symbol-support-x")&&"symbol"==typeof Symbol.toStringTag}()},{"has-symbol-support-x":2}],4:[function(t,n,e){!function(){"use strict";var e=Function.prototype.toString,i=t("to-string-tag-x"),o=t("has-to-string-tag-x"),r=t("is-primitive"),u=function(t){try{return e.call(t),!0}catch(t){}return!1};n.exports=function isFunction(t){if(r(t))return!1;if(o)return u(t);var n=i(t);return"[object Function]"===n||"[object GeneratorFunction]"===n}}()},{"has-to-string-tag-x":3,"is-primitive":6,"to-string-tag-x":9}],5:[function(t,n,e){!function(){"use strict";var e=t("validate.io-undefined"),i=t("lodash.isnull");n.exports=function isNil(t){return i(t)||e(t)}}()},{"lodash.isnull":8,"validate.io-undefined":10}],6:[function(t,n,e){"use strict";n.exports=function isPrimitive(t){return null==t||"function"!=typeof t&&"object"!=typeof t}},{}],7:[function(t,n,e){function isLength(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}var i=9007199254740991;n.exports=isLength},{}],8:[function(t,n,e){function isNull(t){return null===t}n.exports=isNull},{}],9:[function(t,n,e){!function(){"use strict";var e=Object.prototype.toString,i=t("lodash.isnull"),o=t("validate.io-undefined");n.exports=function toStringTag(t){return i(t)?"[object Null]":o(t)?"[object Undefined]":e.call(t)}}()},{"lodash.isnull":8,"validate.io-undefined":10}],10:[function(t,n,e){"use strict";function isUndefined(t){return void 0===t}n.exports=isUndefined},{}]},{},[1])(1)}); | ||
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,n.returnExports=t()}}(function(){return function e(t,n,i){function s(r,u){if(!n[r]){if(!t[r]){var f="function"==typeof require&&require;if(!u&&f)return f(r,!0);if(o)return o(r,!0);var c=new Error("Cannot find module '"+r+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[r]={exports:{}};t[r][0].call(l.exports,function(n){var e=t[r][1][n];return s(e?e:n)},l,l.exports,e,t,n,i)}return n[r].exports}for(var o="function"==typeof require&&require,r=0;r<i.length;r++)s(i[r]);return s}({1:[function(t,n,e){!function(){"use strict";var e=t("is-nil-x"),i=t("is-function-x"),o=t("lodash.islength");n.exports=function isArrayLike(t){return!e(t)&&!i(t)&&o(t.length)}}()},{"is-function-x":4,"is-nil-x":5,"lodash.islength":7}],2:[function(t,n,e){!function(){"use strict";n.exports="function"==typeof Symbol&&"symbol"==typeof Symbol()}()},{}],3:[function(t,n,e){!function(){"use strict";n.exports=t("has-symbol-support-x")&&"symbol"==typeof Symbol.toStringTag}()},{"has-symbol-support-x":2}],4:[function(t,n,e){!function(){"use strict";var e=Function.prototype.toString,i=t("to-string-tag-x"),o=t("has-to-string-tag-x"),r=t("is-primitive"),u=function funcToString(t){try{return e.call(t),!0}catch(t){}return!1};n.exports=function isFunction(t){if(r(t))return!1;if(o)return u(t);var n=i(t);return"[object Function]"===n||"[object GeneratorFunction]"===n||"[object AsyncFunction]"===n}}()},{"has-to-string-tag-x":3,"is-primitive":6,"to-string-tag-x":9}],5:[function(t,n,e){!function(){"use strict";var e=t("validate.io-undefined"),i=t("lodash.isnull");n.exports=function isNil(t){return i(t)||e(t)}}()},{"lodash.isnull":8,"validate.io-undefined":10}],6:[function(t,n,e){"use strict";n.exports=function isPrimitive(t){return null==t||"function"!=typeof t&&"object"!=typeof t}},{}],7:[function(t,n,e){function isLength(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}var i=9007199254740991;n.exports=isLength},{}],8:[function(t,n,e){function isNull(t){return null===t}n.exports=isNull},{}],9:[function(t,n,e){!function(){"use strict";var e=t("lodash.isnull"),i=t("validate.io-undefined");n.exports=function toStringTag(t){return e(t)?"[object Null]":i(t)?"[object Undefined]":Object.prototype.toString.call(t)}}()},{"lodash.isnull":8,"validate.io-undefined":10}],10:[function(t,n,e){"use strict";function isUndefined(t){return void 0===t}n.exports=isUndefined},{}]},{},[1])(1)}); | ||
//# sourceMappingURL=lib/is-array-like-x.map |
{ | ||
"name": "is-array-like-x", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "ES6 isArrayLike module.", | ||
@@ -32,4 +32,4 @@ "homepage": "https://github.com/Xotic750/is-array-like-x", | ||
"dependencies": { | ||
"is-nil-x": "^1.1.0", | ||
"is-function-x": "^1.1.0", | ||
"is-nil-x": "^1.1.1", | ||
"is-function-x": "^1.1.1", | ||
"lodash.islength": "^4.0.1" | ||
@@ -39,25 +39,31 @@ }, | ||
"@ljharb/eslint-config": "^11.0.0", | ||
"browserify": "^14.1.0", | ||
"browserify-derequire": "^0.9.4", | ||
"es5-shim": "^4.5.9", | ||
"es6-shim": "^0.35.3", | ||
"es7-shim": "^6.0.0", | ||
"eslint": "^3.17.1", | ||
"eslint": "^3.18.0", | ||
"eslint-plugin-import": "^2.2.0", | ||
"json3": "^3.3.2", | ||
"jscs": "^3.0.7", | ||
"uglify-js": "^2.8.11", | ||
"browserify": "^14.1.0", | ||
"browserify-derequire": "^0.9.4", | ||
"jasmine-node": "^1.14.5", | ||
"jsdoc-to-markdown": "^3.0.0", | ||
"nsp": "^2.6.3" | ||
"json3": "^3.3.2", | ||
"make-jasmine-spec-runner-html": "^1.0.4", | ||
"nodemon": "^1.11.0", | ||
"nsp": "^2.6.3", | ||
"replace-x": "^1.0.0", | ||
"uglify-js": "^2.8.16" | ||
}, | ||
"scripts": { | ||
"build": "npm run build:setver && npm run security && npm run eslint && npm run browserify && npm run uglify && npm run docs && npm run build:jasmine && npm test", | ||
"build:jasmine": "make-jasmine-spec-runner-html", | ||
"build:setver": "PKG_VER=$(node -p -e \"require('./package.json').version\") && replace-x \" @version .*\" \" @version ${PKG_VER}\" index.js", | ||
"build:watch": "nodemon --watch index.js --watch package.json --exec 'npm run build'", | ||
"docs": "jsdoc2md --name-format --example-lang js index.js > README.md", | ||
"eslint": "eslint *.js tests/spec/*.js", | ||
"security": "nsp check", | ||
"test": "jasmine-node --matchall tests/spec/", | ||
"security": "nsp check", | ||
"style": "jscs index.js", | ||
"eslint": "eslint *.js tests/spec/*.js", | ||
"docs": "jsdoc2md --name-format --example-lang js index.js > README.md", | ||
"build": "browserify -p browserify-derequire -e index.js -o lib/is-array-like-x.js -u 'crypto' -s returnExports", | ||
"build-uglify": "uglifyjs lib/is-array-like-x.js -o lib/is-array-like-x.min.js --compress --keep-fnames --mangle --beautify ascii_only=true,beautify=false --source-map lib/is-array-like-x.map" | ||
"test:watch": "nodemon --watch tests/spec/test.js --exec 'npm test'", | ||
"browserify": "browserify -p browserify-derequire -e index.js -o lib/is-array-like-x.js -u 'crypto' -s returnExports", | ||
"uglify": "uglifyjs lib/is-array-like-x.js -o lib/is-array-like-x.min.js --compress --keep-fnames --mangle --beautify ascii_only=true,beautify=false --source-map lib/is-array-like-x.map" | ||
} | ||
} |
@@ -26,20 +26,3 @@ <a name="module_is-array-like-x"></a> | ||
<h2>ECMAScript compatibility shims for legacy JavaScript engines</h2> | ||
`es5-shim.js` monkey-patches a JavaScript context to contain all EcmaScript 5 | ||
methods that can be faithfully emulated with a legacy JavaScript engine. | ||
`es5-sham.js` monkey-patches other ES5 methods as closely as possible. | ||
For these methods, as closely as possible to ES5 is not very close. | ||
Many of these shams are intended only to allow code to be written to ES5 | ||
without causing run-time errors in older engines. In many cases, | ||
this means that these shams cause many ES5 methods to silently fail. | ||
Decide carefully whether this is what you want. Note: es5-sham.js requires | ||
es5-shim.js to be able to work properly. | ||
`json3.js` monkey-patches the EcmaScript 5 JSON implimentation faithfully. | ||
`es6.shim.js` provides compatibility shims so that legacy JavaScript engines | ||
behave as closely as possible to ECMAScript 6 (Harmony). | ||
**Version**: 1.1.0 | ||
**Version**: 1.1.1 | ||
**Author**: Xotic750 <Xotic750@gmail.com> | ||
@@ -46,0 +29,0 @@ **License**: [MIT](<https://opensource.org/licenses/MIT>) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
36253
-76.45%16
14.29%13
-7.14%679
-29.05%53
-24.29%Updated
Updated