is-array-x
Advanced tools
Comparing version 1.1.0 to 1.1.1
/** | ||
* @file Determines whether the passed value is an Array. | ||
* @version 1.1.0 | ||
* @version 1.1.1 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -12,2 +12,3 @@ * @copyright Xotic750 | ||
var isFalsey = require('is-falsey-x'); | ||
var nativeIsArray = typeof Array.isArray === 'function' && Array.isArray; | ||
@@ -24,3 +25,3 @@ | ||
if (Boolean($isArray) === false) { | ||
if (isFalsey($isArray)) { | ||
var toStringTag = require('to-string-tag-x'); | ||
@@ -27,0 +28,0 @@ $isArray = function isArray(obj) { |
(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){ | ||
/** | ||
* @file Determines whether the passed value is an Array. | ||
* @version 1.1.0 | ||
* @version 1.1.1 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -13,2 +13,3 @@ * @copyright Xotic750 | ||
var isFalsey = _dereq_('is-falsey-x'); | ||
var nativeIsArray = typeof Array.isArray === 'function' && Array.isArray; | ||
@@ -25,3 +26,3 @@ | ||
if (Boolean($isArray) === false) { | ||
if (isFalsey($isArray)) { | ||
var toStringTag = _dereq_('to-string-tag-x'); | ||
@@ -46,4 +47,39 @@ $isArray = function isArray(obj) { | ||
},{"to-string-tag-x":3}],2:[function(_dereq_,module,exports){ | ||
},{"is-falsey-x":2,"to-string-tag-x":4}],2:[function(_dereq_,module,exports){ | ||
/** | ||
* @file Test if a given value is falsey. | ||
* @version 1.0.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
* @copyright Xotic750 | ||
* @license {@link <https://opensource.org/licenses/MIT> MIT} | ||
* @module is-falsey-x | ||
*/ | ||
'use strict'; | ||
/** | ||
* This method tests if a given value is falsey. | ||
* | ||
* @param {*} value - The value to test. | ||
* @returns {boolean} `true` if the value is falsey: otherwise `false`. | ||
* @example | ||
* var isFalsey = require('is-falsey-x'); | ||
* | ||
* isFalsey(); // true | ||
* isFalsey(0); // true | ||
* isFalsey(''); // true | ||
* isFalsey(false); // true | ||
* isFalsey(null); // true | ||
* | ||
* isFalsey(true); // false | ||
* isFalsey([]); // false | ||
* isFalsey(1); // false | ||
* isFalsey(function () {}); // false | ||
*/ | ||
module.exports = function isFalsey(value) { | ||
return Boolean(value) === false; | ||
}; | ||
},{}],3:[function(_dereq_,module,exports){ | ||
/** | ||
* lodash 3.0.0 (Custom Build) <https://lodash.com/> | ||
@@ -79,7 +115,7 @@ * Build: `lodash modern modularize exports="npm" -o ./` | ||
},{}],3:[function(_dereq_,module,exports){ | ||
},{}],4:[function(_dereq_,module,exports){ | ||
/** | ||
* @file Get an object's ES6 @@toStringTag. | ||
* @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring|19.1.3.6 Object.prototype.toString ( )} | ||
* @version 1.4.0 | ||
* @version 1.4.1 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -121,3 +157,3 @@ * @copyright Xotic750 | ||
},{"lodash.isnull":2,"validate.io-undefined":4}],4:[function(_dereq_,module,exports){ | ||
},{"lodash.isnull":3,"validate.io-undefined":5}],5:[function(_dereq_,module,exports){ | ||
/** | ||
@@ -124,0 +160,0 @@ * |
!function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).returnExports=f()}}(function(){return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&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||e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o<r.length;o++)s(r[o]);return s}({1:[function(_dereq_,module,exports){/** | ||
* @file Determines whether the passed value is an Array. | ||
* @version 1.1.0 | ||
* @version 1.1.1 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -9,6 +9,14 @@ * @copyright Xotic750 | ||
*/ | ||
"use strict";var $isArray,nativeIsArray="function"==typeof Array.isArray&&Array.isArray;if(nativeIsArray)try{$isArray([])&&!1===$isArray({length:0})&&($isArray=nativeIsArray)}catch(ignore){}if(!1===Boolean($isArray)){var toStringTag=_dereq_("to-string-tag-x");$isArray=function isArray(obj){return"[object Array]"===toStringTag(obj)}}module.exports=$isArray},{"to-string-tag-x":3}],2:[function(_dereq_,module,exports){module.exports=function isNull(value){return null===value}},{}],3:[function(_dereq_,module,exports){/** | ||
"use strict";var $isArray,isFalsey=_dereq_("is-falsey-x"),nativeIsArray="function"==typeof Array.isArray&&Array.isArray;if(nativeIsArray)try{$isArray([])&&!1===$isArray({length:0})&&($isArray=nativeIsArray)}catch(ignore){}if(isFalsey($isArray)){var toStringTag=_dereq_("to-string-tag-x");$isArray=function isArray(obj){return"[object Array]"===toStringTag(obj)}}module.exports=$isArray},{"is-falsey-x":2,"to-string-tag-x":4}],2:[function(_dereq_,module,exports){/** | ||
* @file Test if a given value is falsey. | ||
* @version 1.0.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
* @copyright Xotic750 | ||
* @license {@link <https://opensource.org/licenses/MIT> MIT} | ||
* @module is-falsey-x | ||
*/ | ||
"use strict";module.exports=function isFalsey(value){return!1===Boolean(value)}},{}],3:[function(_dereq_,module,exports){module.exports=function isNull(value){return null===value}},{}],4:[function(_dereq_,module,exports){/** | ||
* @file Get an object's ES6 @@toStringTag. | ||
* @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring|19.1.3.6 Object.prototype.toString ( )} | ||
* @version 1.4.0 | ||
* @version 1.4.1 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -19,2 +27,2 @@ * @copyright Xotic750 | ||
*/ | ||
"use strict";var isNull=_dereq_("lodash.isnull"),isUndefined=_dereq_("validate.io-undefined"),toStr=Object.prototype.toString;module.exports=function toStringTag(value){return isNull(value)?"[object Null]":isUndefined(value)?"[object Undefined]":toStr.call(value)}},{"lodash.isnull":2,"validate.io-undefined":4}],4:[function(_dereq_,module,exports){"use strict";module.exports=function isUndefined(value){return void 0===value}},{}]},{},[1])(1)}); | ||
"use strict";var isNull=_dereq_("lodash.isnull"),isUndefined=_dereq_("validate.io-undefined"),toStr=Object.prototype.toString;module.exports=function toStringTag(value){return isNull(value)?"[object Null]":isUndefined(value)?"[object Undefined]":toStr.call(value)}},{"lodash.isnull":3,"validate.io-undefined":5}],5:[function(_dereq_,module,exports){"use strict";module.exports=function isUndefined(value){return void 0===value}},{}]},{},[1])(1)}); |
{ | ||
"name": "is-array-x", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Determines whether the passed value is an Array.", | ||
@@ -32,3 +32,4 @@ "homepage": "https://github.com/Xotic750/is-array-x", | ||
"dependencies": { | ||
"to-string-tag-x": "^1.4.0" | ||
"is-falsey-x": "^1.0.0", | ||
"to-string-tag-x": "^1.4.1" | ||
}, | ||
@@ -35,0 +36,0 @@ "devDependencies": { |
@@ -26,3 +26,3 @@ <a href="https://travis-ci.org/Xotic750/is-array-x" | ||
**Version**: 1.1.0 | ||
**Version**: 1.1.1 | ||
**Author**: Xotic750 <Xotic750@gmail.com> | ||
@@ -29,0 +29,0 @@ **License**: [MIT](<https://opensource.org/licenses/MIT>) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20778
2
14
267
+ Addedis-falsey-x@^1.0.0
+ Addedis-falsey-x@1.0.3(transitive)
+ Addedto-boolean-x@1.0.3(transitive)
Updatedto-string-tag-x@^1.4.1