@pluginjs/is
Advanced tools
Comparing version 0.7.12 to 0.7.13
/*! | ||
* @pluginjs/is v0.7.12 (https://pluginjs.com) | ||
* @pluginjs/is v0.7.13 (https://pluginjs.com) | ||
* Copyright 2019 Creation Studio Limited | ||
@@ -13,3 +13,3 @@ * Released under the GPL-3.0 License. | ||
/* Credit to http://is.js.org MIT */ | ||
const toString = Object.prototype.toString; // Type checks | ||
var toString = Object.prototype.toString; // Type checks | ||
@@ -19,3 +19,3 @@ /* -------------------------------------------------------------------------- */ | ||
const isArguments = value => { | ||
var isArguments = value => { | ||
// fallback check is for IE | ||
@@ -25,3 +25,3 @@ return toString.call(value) === '[object Arguments]' || value != null && typeof value === 'object' && 'callee' in value; | ||
const isArray = val => { | ||
var isArray = val => { | ||
if (Array.isArray) { | ||
@@ -34,35 +34,35 @@ return Array.isArray(val); | ||
const isBoolean = val => { | ||
var isBoolean = val => { | ||
return val === true || val === false || toString.call(val) === '[object Boolean]'; | ||
}; // is a given value Char? | ||
const isChar = val => { | ||
var isChar = val => { | ||
return isString(val) && val.length === 1; | ||
}; // is a given value Date Object? | ||
const isDate = value => { | ||
var isDate = value => { | ||
return toString.call(value) === '[object Date]'; | ||
}; // is a given object a DOM node? | ||
const isDomNode = object => { | ||
var isDomNode = object => { | ||
return isObject(object) && object.nodeType > 0; | ||
}; // is a given object a Element? | ||
const isElement = el => { | ||
var isElement = el => { | ||
return isObject(el) && el.nodeType === 1 && !isPlainObject(el); | ||
}; // is a given value window object | ||
const isWindow = val => { | ||
var isWindow = val => { | ||
return val != null && typeof val === 'object' && 'setInterval' in val; | ||
}; // is a given value document object | ||
const isDocument = val => { | ||
var isDocument = val => { | ||
return typeof val === 'object' && val.nodeType === 9; | ||
}; // is a given value Error object? | ||
const isError = val => { | ||
var isError = val => { | ||
return toString.call(val) === '[object Error]'; | ||
}; // is a given value function? | ||
const isFunction = val => { | ||
var isFunction = val => { | ||
// fallback check is for IE | ||
@@ -72,7 +72,7 @@ return toString.call(val) === '[object Function]' || typeof val === 'function'; | ||
const isJson = value => { | ||
var isJson = value => { | ||
return toString.call(value) === '[object Object]'; | ||
}; // is a given value NaN? | ||
const isNan = val => { | ||
var isNan = val => { | ||
// NaN is number :) Also it is the only value which does not equal itself | ||
@@ -82,51 +82,51 @@ return val !== val; | ||
const isNull = val => { | ||
var isNull = val => { | ||
return val === null; | ||
}; // is a given value number? | ||
const isNumber = val => { | ||
var isNumber = val => { | ||
return !isNan(val) && toString.call(val) === '[object Number]'; | ||
}; // is a given value object? | ||
const isObject = val => { | ||
var isObject = val => { | ||
return Object(val) === val; | ||
}; // is a given value plain object? | ||
const isPlainObject = val => { | ||
var isPlainObject = val => { | ||
return toString.call(val) === '[object Object]'; | ||
}; // is a given value empty object? | ||
const isEmptyObject = val => { | ||
var isEmptyObject = val => { | ||
return isObject(val) && Object.getOwnPropertyNames(val).length == 0; | ||
}; // is a given value RegExp? | ||
const isRegexp = val => { | ||
var isRegexp = val => { | ||
return toString.call(val) === '[object RegExp]'; | ||
}; // is a given value String? | ||
const isString = val => { | ||
var isString = val => { | ||
return typeof val === 'string' || toString.call(val) === '[object String]'; | ||
}; // is a given value undefined? | ||
const isUndefined = val => { | ||
var isUndefined = val => { | ||
return val === void 0; | ||
}; // is a given value Map? | ||
const isMap = val => { | ||
var isMap = val => { | ||
return val != null && val.constructor ? val.constructor.name === 'Map' : false; | ||
}; // is a given value Set? | ||
const isSet = val => { | ||
var isSet = val => { | ||
return val != null && val.constructor ? val.constructor.name === 'Set' : false; | ||
}; // is a given value Promise? | ||
const isPromise = val => { | ||
var isPromise = val => { | ||
return val != null && val.constructor ? val.constructor.name === 'Promise' : false; | ||
}; // is a given value Symbol? | ||
const isSymbol = val => { | ||
var isSymbol = val => { | ||
return val != null && val.constructor ? val.constructor.name === 'Symbol' : false; | ||
}; // is a given value is empty | ||
const isEmpty = val => { | ||
var isEmpty = val => { | ||
return isNumber(val) && val === 0 || isArray(val) && val.length === 0 || isString(val) && val === '' || isEmptyObject(val) || isNull(val) || isUndefined(val) || val === false; | ||
@@ -138,30 +138,30 @@ }; // Arithmetic checks | ||
const isNumeric = n => { | ||
var isNumeric = n => { | ||
return (isNumber(n) || isString(n)) && !isNan(n - parseFloat(n)); | ||
}; // is a given number percentage? | ||
const isPercentage = n => { | ||
var isPercentage = n => { | ||
return typeof n === 'string' && n.indexOf('%') !== -1; | ||
}; // is a given number decimal? | ||
const isDecimal = n => { | ||
var isDecimal = n => { | ||
return isNumber(n) && n % 1 !== 0; | ||
}; // is a given number finite? | ||
const isFinite = n => { | ||
var isFinite = n => { | ||
return !isInfinite(n) && !isNan(n); | ||
}; // is a given number infinite? | ||
const isInfinite = n => { | ||
var isInfinite = n => { | ||
return n === Infinity || n === -Infinity; | ||
}; | ||
const isInteger = n => { | ||
var isInteger = n => { | ||
return isNumber(n) && n % 1 === 0; | ||
}; // is a given number negative? | ||
const isNegative = n => { | ||
var isNegative = n => { | ||
return isNumber(n) && n < 0; | ||
}; // is a given number positive? | ||
const isPositive = n => { | ||
var isPositive = n => { | ||
return isNumber(n) && n > 0; | ||
@@ -168,0 +168,0 @@ }; |
/*! | ||
* @pluginjs/is v0.7.12 (https://pluginjs.com) | ||
* @pluginjs/is v0.7.13 (https://pluginjs.com) | ||
* Copyright 2019 Creation Studio Limited | ||
* Released under the GPL-3.0 License. | ||
*/ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const toString=Object.prototype.toString,isArguments=i=>"[object Arguments]"===toString.call(i)||null!=i&&"object"==typeof i&&"callee"in i,isArray=i=>Array.isArray?Array.isArray(i):"[object Array]"===toString.call(i),isBoolean=i=>!0===i||!1===i||"[object Boolean]"===toString.call(i),isChar=i=>isString(i)&&1===i.length,isDate=i=>"[object Date]"===toString.call(i),isDomNode=i=>isObject(i)&&i.nodeType>0,isElement=i=>isObject(i)&&1===i.nodeType&&!isPlainObject(i),isWindow=i=>null!=i&&"object"==typeof i&&"setInterval"in i,isDocument=i=>"object"==typeof i&&9===i.nodeType,isError=i=>"[object Error]"===toString.call(i),isFunction=i=>"[object Function]"===toString.call(i)||"function"==typeof i,isJson=i=>"[object Object]"===toString.call(i),isNan=i=>i!=i,isNull=i=>null===i,isNumber=i=>!isNan(i)&&"[object Number]"===toString.call(i),isObject=i=>Object(i)===i,isPlainObject=i=>"[object Object]"===toString.call(i),isEmptyObject=i=>isObject(i)&&0==Object.getOwnPropertyNames(i).length,isRegexp=i=>"[object RegExp]"===toString.call(i),isString=i=>"string"==typeof i||"[object String]"===toString.call(i),isUndefined=i=>void 0===i,isMap=i=>!(null==i||!i.constructor)&&"Map"===i.constructor.name,isSet=i=>!(null==i||!i.constructor)&&"Set"===i.constructor.name,isPromise=i=>!(null==i||!i.constructor)&&"Promise"===i.constructor.name,isSymbol=i=>!(null==i||!i.constructor)&&"Symbol"===i.constructor.name,isEmpty=i=>isNumber(i)&&0===i||isArray(i)&&0===i.length||isString(i)&&""===i||isEmptyObject(i)||isNull(i)||isUndefined(i)||!1===i,isNumeric=i=>(isNumber(i)||isString(i))&&!isNan(i-parseFloat(i)),isPercentage=i=>"string"==typeof i&&-1!==i.indexOf("%"),isDecimal=i=>isNumber(i)&&i%1!=0,isFinite=i=>!isInfinite(i)&&!isNan(i),isInfinite=i=>i===1/0||i===-1/0,isInteger=i=>isNumber(i)&&i%1==0,isNegative=i=>isNumber(i)&&i<0,isPositive=i=>isNumber(i)&&i>0;exports.isArguments=isArguments,exports.isArray=isArray,exports.isBoolean=isBoolean,exports.isChar=isChar,exports.isDate=isDate,exports.isDecimal=isDecimal,exports.isDocument=isDocument,exports.isDomNode=isDomNode,exports.isElement=isElement,exports.isEmpty=isEmpty,exports.isEmptyObject=isEmptyObject,exports.isError=isError,exports.isFinite=isFinite,exports.isFunction=isFunction,exports.isInfinite=isInfinite,exports.isInteger=isInteger,exports.isJson=isJson,exports.isMap=isMap,exports.isNan=isNan,exports.isNegative=isNegative,exports.isNull=isNull,exports.isNumber=isNumber,exports.isNumeric=isNumeric,exports.isObject=isObject,exports.isPercentage=isPercentage,exports.isPlainObject=isPlainObject,exports.isPositive=isPositive,exports.isPromise=isPromise,exports.isRegexp=isRegexp,exports.isSet=isSet,exports.isString=isString,exports.isSymbol=isSymbol,exports.isUndefined=isUndefined,exports.isWindow=isWindow; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var toString=Object.prototype.toString,isArguments=i=>"[object Arguments]"===toString.call(i)||null!=i&&"object"==typeof i&&"callee"in i,isArray=i=>Array.isArray?Array.isArray(i):"[object Array]"===toString.call(i),isBoolean=i=>!0===i||!1===i||"[object Boolean]"===toString.call(i),isChar=i=>isString(i)&&1===i.length,isDate=i=>"[object Date]"===toString.call(i),isDomNode=i=>isObject(i)&&i.nodeType>0,isElement=i=>isObject(i)&&1===i.nodeType&&!isPlainObject(i),isWindow=i=>null!=i&&"object"==typeof i&&"setInterval"in i,isDocument=i=>"object"==typeof i&&9===i.nodeType,isError=i=>"[object Error]"===toString.call(i),isFunction=i=>"[object Function]"===toString.call(i)||"function"==typeof i,isJson=i=>"[object Object]"===toString.call(i),isNan=i=>i!=i,isNull=i=>null===i,isNumber=i=>!isNan(i)&&"[object Number]"===toString.call(i),isObject=i=>Object(i)===i,isPlainObject=i=>"[object Object]"===toString.call(i),isEmptyObject=i=>isObject(i)&&0==Object.getOwnPropertyNames(i).length,isRegexp=i=>"[object RegExp]"===toString.call(i),isString=i=>"string"==typeof i||"[object String]"===toString.call(i),isUndefined=i=>void 0===i,isMap=i=>!(null==i||!i.constructor)&&"Map"===i.constructor.name,isSet=i=>!(null==i||!i.constructor)&&"Set"===i.constructor.name,isPromise=i=>!(null==i||!i.constructor)&&"Promise"===i.constructor.name,isSymbol=i=>!(null==i||!i.constructor)&&"Symbol"===i.constructor.name,isEmpty=i=>isNumber(i)&&0===i||isArray(i)&&0===i.length||isString(i)&&""===i||isEmptyObject(i)||isNull(i)||isUndefined(i)||!1===i,isNumeric=i=>(isNumber(i)||isString(i))&&!isNan(i-parseFloat(i)),isPercentage=i=>"string"==typeof i&&-1!==i.indexOf("%"),isDecimal=i=>isNumber(i)&&i%1!=0,isFinite=i=>!isInfinite(i)&&!isNan(i),isInfinite=i=>i===1/0||i===-1/0,isInteger=i=>isNumber(i)&&i%1==0,isNegative=i=>isNumber(i)&&i<0,isPositive=i=>isNumber(i)&&i>0;exports.isArguments=isArguments,exports.isArray=isArray,exports.isBoolean=isBoolean,exports.isChar=isChar,exports.isDate=isDate,exports.isDecimal=isDecimal,exports.isDocument=isDocument,exports.isDomNode=isDomNode,exports.isElement=isElement,exports.isEmpty=isEmpty,exports.isEmptyObject=isEmptyObject,exports.isError=isError,exports.isFinite=isFinite,exports.isFunction=isFunction,exports.isInfinite=isInfinite,exports.isInteger=isInteger,exports.isJson=isJson,exports.isMap=isMap,exports.isNan=isNan,exports.isNegative=isNegative,exports.isNull=isNull,exports.isNumber=isNumber,exports.isNumeric=isNumeric,exports.isObject=isObject,exports.isPercentage=isPercentage,exports.isPlainObject=isPlainObject,exports.isPositive=isPositive,exports.isPromise=isPromise,exports.isRegexp=isRegexp,exports.isSet=isSet,exports.isString=isString,exports.isSymbol=isSymbol,exports.isUndefined=isUndefined,exports.isWindow=isWindow; |
/*! | ||
* @pluginjs/is v0.7.12 (https://pluginjs.com) | ||
* @pluginjs/is v0.7.13 (https://pluginjs.com) | ||
* Copyright 2019 Creation Studio Limited | ||
@@ -9,3 +9,3 @@ * Released under the GPL-3.0 License. | ||
/* Credit to http://is.js.org MIT */ | ||
const toString = Object.prototype.toString; // Type checks | ||
var toString = Object.prototype.toString; // Type checks | ||
@@ -15,3 +15,3 @@ /* -------------------------------------------------------------------------- */ | ||
const isArguments = value => { | ||
var isArguments = value => { | ||
// fallback check is for IE | ||
@@ -21,3 +21,3 @@ return toString.call(value) === '[object Arguments]' || value != null && typeof value === 'object' && 'callee' in value; | ||
const isArray = val => { | ||
var isArray = val => { | ||
if (Array.isArray) { | ||
@@ -30,35 +30,35 @@ return Array.isArray(val); | ||
const isBoolean = val => { | ||
var isBoolean = val => { | ||
return val === true || val === false || toString.call(val) === '[object Boolean]'; | ||
}; // is a given value Char? | ||
const isChar = val => { | ||
var isChar = val => { | ||
return isString(val) && val.length === 1; | ||
}; // is a given value Date Object? | ||
const isDate = value => { | ||
var isDate = value => { | ||
return toString.call(value) === '[object Date]'; | ||
}; // is a given object a DOM node? | ||
const isDomNode = object => { | ||
var isDomNode = object => { | ||
return isObject(object) && object.nodeType > 0; | ||
}; // is a given object a Element? | ||
const isElement = el => { | ||
var isElement = el => { | ||
return isObject(el) && el.nodeType === 1 && !isPlainObject(el); | ||
}; // is a given value window object | ||
const isWindow = val => { | ||
var isWindow = val => { | ||
return val != null && typeof val === 'object' && 'setInterval' in val; | ||
}; // is a given value document object | ||
const isDocument = val => { | ||
var isDocument = val => { | ||
return typeof val === 'object' && val.nodeType === 9; | ||
}; // is a given value Error object? | ||
const isError = val => { | ||
var isError = val => { | ||
return toString.call(val) === '[object Error]'; | ||
}; // is a given value function? | ||
const isFunction = val => { | ||
var isFunction = val => { | ||
// fallback check is for IE | ||
@@ -68,7 +68,7 @@ return toString.call(val) === '[object Function]' || typeof val === 'function'; | ||
const isJson = value => { | ||
var isJson = value => { | ||
return toString.call(value) === '[object Object]'; | ||
}; // is a given value NaN? | ||
const isNan = val => { | ||
var isNan = val => { | ||
// NaN is number :) Also it is the only value which does not equal itself | ||
@@ -78,51 +78,51 @@ return val !== val; | ||
const isNull = val => { | ||
var isNull = val => { | ||
return val === null; | ||
}; // is a given value number? | ||
const isNumber = val => { | ||
var isNumber = val => { | ||
return !isNan(val) && toString.call(val) === '[object Number]'; | ||
}; // is a given value object? | ||
const isObject = val => { | ||
var isObject = val => { | ||
return Object(val) === val; | ||
}; // is a given value plain object? | ||
const isPlainObject = val => { | ||
var isPlainObject = val => { | ||
return toString.call(val) === '[object Object]'; | ||
}; // is a given value empty object? | ||
const isEmptyObject = val => { | ||
var isEmptyObject = val => { | ||
return isObject(val) && Object.getOwnPropertyNames(val).length == 0; | ||
}; // is a given value RegExp? | ||
const isRegexp = val => { | ||
var isRegexp = val => { | ||
return toString.call(val) === '[object RegExp]'; | ||
}; // is a given value String? | ||
const isString = val => { | ||
var isString = val => { | ||
return typeof val === 'string' || toString.call(val) === '[object String]'; | ||
}; // is a given value undefined? | ||
const isUndefined = val => { | ||
var isUndefined = val => { | ||
return val === void 0; | ||
}; // is a given value Map? | ||
const isMap = val => { | ||
var isMap = val => { | ||
return val != null && val.constructor ? val.constructor.name === 'Map' : false; | ||
}; // is a given value Set? | ||
const isSet = val => { | ||
var isSet = val => { | ||
return val != null && val.constructor ? val.constructor.name === 'Set' : false; | ||
}; // is a given value Promise? | ||
const isPromise = val => { | ||
var isPromise = val => { | ||
return val != null && val.constructor ? val.constructor.name === 'Promise' : false; | ||
}; // is a given value Symbol? | ||
const isSymbol = val => { | ||
var isSymbol = val => { | ||
return val != null && val.constructor ? val.constructor.name === 'Symbol' : false; | ||
}; // is a given value is empty | ||
const isEmpty = val => { | ||
var isEmpty = val => { | ||
return isNumber(val) && val === 0 || isArray(val) && val.length === 0 || isString(val) && val === '' || isEmptyObject(val) || isNull(val) || isUndefined(val) || val === false; | ||
@@ -134,30 +134,30 @@ }; // Arithmetic checks | ||
const isNumeric = n => { | ||
var isNumeric = n => { | ||
return (isNumber(n) || isString(n)) && !isNan(n - parseFloat(n)); | ||
}; // is a given number percentage? | ||
const isPercentage = n => { | ||
var isPercentage = n => { | ||
return typeof n === 'string' && n.indexOf('%') !== -1; | ||
}; // is a given number decimal? | ||
const isDecimal = n => { | ||
var isDecimal = n => { | ||
return isNumber(n) && n % 1 !== 0; | ||
}; // is a given number finite? | ||
const isFinite = n => { | ||
var isFinite = n => { | ||
return !isInfinite(n) && !isNan(n); | ||
}; // is a given number infinite? | ||
const isInfinite = n => { | ||
var isInfinite = n => { | ||
return n === Infinity || n === -Infinity; | ||
}; | ||
const isInteger = n => { | ||
var isInteger = n => { | ||
return isNumber(n) && n % 1 === 0; | ||
}; // is a given number negative? | ||
const isNegative = n => { | ||
var isNegative = n => { | ||
return isNumber(n) && n < 0; | ||
}; // is a given number positive? | ||
const isPositive = n => { | ||
var isPositive = n => { | ||
return isNumber(n) && n > 0; | ||
@@ -164,0 +164,0 @@ }; |
/*! | ||
* @pluginjs/is v0.7.12 (https://pluginjs.com) | ||
* @pluginjs/is v0.7.13 (https://pluginjs.com) | ||
* Copyright 2019 Creation Studio Limited | ||
* Released under the GPL-3.0 License. | ||
*/ | ||
const t=Object.prototype.toString,e=e=>"[object Arguments]"===t.call(e)||null!=e&&"object"==typeof e&&"callee"in e,o=e=>Array.isArray?Array.isArray(e):"[object Array]"===t.call(e),c=e=>!0===e||!1===e||"[object Boolean]"===t.call(e),l=t=>d(t)&&1===t.length,r=e=>"[object Date]"===t.call(e),n=t=>m(t)&&t.nodeType>0,a=t=>m(t)&&1===t.nodeType&&!f(t),b=t=>null!=t&&"object"==typeof t&&"setInterval"in t,j=t=>"object"==typeof t&&9===t.nodeType,u=e=>"[object Error]"===t.call(e),s=e=>"[object Function]"===t.call(e)||"function"==typeof e,y=e=>"[object Object]"===t.call(e),p=t=>t!=t,i=t=>null===t,g=e=>!p(e)&&"[object Number]"===t.call(e),m=t=>Object(t)===t,f=e=>"[object Object]"===t.call(e),O=t=>m(t)&&0==Object.getOwnPropertyNames(t).length,A=e=>"[object RegExp]"===t.call(e),d=e=>"string"==typeof e||"[object String]"===t.call(e),S=t=>void 0===t,h=t=>!(null==t||!t.constructor)&&"Map"===t.constructor.name,x=t=>!(null==t||!t.constructor)&&"Set"===t.constructor.name,T=t=>!(null==t||!t.constructor)&&"Promise"===t.constructor.name,v=t=>!(null==t||!t.constructor)&&"Symbol"===t.constructor.name,E=t=>g(t)&&0===t||o(t)&&0===t.length||d(t)&&""===t||O(t)||i(t)||S(t)||!1===t,F=t=>(g(t)||d(t))&&!p(t-parseFloat(t)),N=t=>"string"==typeof t&&-1!==t.indexOf("%"),P=t=>g(t)&&t%1!=0,w=t=>!B(t)&&!p(t),B=t=>t===1/0||t===-1/0,D=t=>g(t)&&t%1==0,I=t=>g(t)&&t<0,M=t=>g(t)&&t>0;export{e as isArguments,o as isArray,c as isBoolean,l as isChar,r as isDate,P as isDecimal,j as isDocument,n as isDomNode,a as isElement,E as isEmpty,O as isEmptyObject,u as isError,w as isFinite,s as isFunction,B as isInfinite,D as isInteger,y as isJson,h as isMap,p as isNan,I as isNegative,i as isNull,g as isNumber,F as isNumeric,m as isObject,N as isPercentage,f as isPlainObject,M as isPositive,T as isPromise,A as isRegexp,x as isSet,d as isString,v as isSymbol,S as isUndefined,b as isWindow}; | ||
var t=Object.prototype.toString,e=e=>"[object Arguments]"===t.call(e)||null!=e&&"object"==typeof e&&"callee"in e,o=e=>Array.isArray?Array.isArray(e):"[object Array]"===t.call(e),c=e=>!0===e||!1===e||"[object Boolean]"===t.call(e),l=t=>d(t)&&1===t.length,r=e=>"[object Date]"===t.call(e),n=t=>m(t)&&t.nodeType>0,a=t=>m(t)&&1===t.nodeType&&!f(t),b=t=>null!=t&&"object"==typeof t&&"setInterval"in t,j=t=>"object"==typeof t&&9===t.nodeType,u=e=>"[object Error]"===t.call(e),s=e=>"[object Function]"===t.call(e)||"function"==typeof e,y=e=>"[object Object]"===t.call(e),p=t=>t!=t,i=t=>null===t,g=e=>!p(e)&&"[object Number]"===t.call(e),m=t=>Object(t)===t,f=e=>"[object Object]"===t.call(e),O=t=>m(t)&&0==Object.getOwnPropertyNames(t).length,A=e=>"[object RegExp]"===t.call(e),d=e=>"string"==typeof e||"[object String]"===t.call(e),S=t=>void 0===t,h=t=>!(null==t||!t.constructor)&&"Map"===t.constructor.name,v=t=>!(null==t||!t.constructor)&&"Set"===t.constructor.name,x=t=>!(null==t||!t.constructor)&&"Promise"===t.constructor.name,T=t=>!(null==t||!t.constructor)&&"Symbol"===t.constructor.name,E=t=>g(t)&&0===t||o(t)&&0===t.length||d(t)&&""===t||O(t)||i(t)||S(t)||!1===t,F=t=>(g(t)||d(t))&&!p(t-parseFloat(t)),N=t=>"string"==typeof t&&-1!==t.indexOf("%"),P=t=>g(t)&&t%1!=0,w=t=>!B(t)&&!p(t),B=t=>t===1/0||t===-1/0,D=t=>g(t)&&t%1==0,I=t=>g(t)&&t<0,M=t=>g(t)&&t>0;export{e as isArguments,o as isArray,c as isBoolean,l as isChar,r as isDate,P as isDecimal,j as isDocument,n as isDomNode,a as isElement,E as isEmpty,O as isEmptyObject,u as isError,w as isFinite,s as isFunction,B as isInfinite,D as isInteger,y as isJson,h as isMap,p as isNan,I as isNegative,i as isNull,g as isNumber,F as isNumeric,m as isObject,N as isPercentage,f as isPlainObject,M as isPositive,x as isPromise,A as isRegexp,v as isSet,d as isString,T as isSymbol,S as isUndefined,b as isWindow}; |
/*! | ||
* @pluginjs/is v0.7.12 (https://pluginjs.com) | ||
* @pluginjs/is v0.7.13 (https://pluginjs.com) | ||
* Copyright 2019 Creation Studio Limited | ||
@@ -4,0 +4,0 @@ * Released under the GPL-3.0 License. |
/*! | ||
* @pluginjs/is v0.7.12 (https://pluginjs.com) | ||
* @pluginjs/is v0.7.13 (https://pluginjs.com) | ||
* Copyright 2019 Creation Studio Limited | ||
@@ -4,0 +4,0 @@ * Released under the GPL-3.0 License. |
@@ -14,3 +14,3 @@ { | ||
}, | ||
"version": "0.7.12", | ||
"version": "0.7.13", | ||
"category": "utils", | ||
@@ -37,5 +37,5 @@ "main": "dist/is.common.js", | ||
"devDependencies": { | ||
"@babel/core": "^7.4.4", | ||
"@pluginjs/browserslist-config": "^1.2.8", | ||
"@pluginjs/cli": "^0.7.11", | ||
"@babel/core": "^7.5.5", | ||
"@pluginjs/browserslist-config": "^1.2.9", | ||
"@pluginjs/cli": "^0.7.12", | ||
"babel-jest": "*", | ||
@@ -66,4 +66,4 @@ "jest": "*", | ||
], | ||
"gitHead": "dd7e1408426c72aa61b9bcd2968c389a8be92fec", | ||
"gitHead": "e0247ab4b5e2026b77a390619f2b96bac30609c6", | ||
"title": "Plugin" | ||
} |
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
38735