Comparing version 2.0.0 to 2.2.3
@@ -132,3 +132,3 @@ 'use strict'; | ||
* @param {*} val | ||
* @return {Boolean} | ||
* @return {boolean} | ||
*/ | ||
@@ -144,3 +144,3 @@ | ||
* @param {*} val | ||
* @return {Boolean} | ||
* @return {boolean} | ||
*/ | ||
@@ -156,3 +156,3 @@ | ||
* @param {*} val | ||
* @return {Boolean} | ||
* @return {boolean} | ||
*/ | ||
@@ -179,3 +179,3 @@ | ||
* @param {*} val | ||
* @return {Boolean} | ||
* @return {boolean} | ||
*/ | ||
@@ -202,3 +202,3 @@ | ||
* @param {*} val | ||
* @return {Boolean} | ||
* @return {boolean} | ||
*/ | ||
@@ -227,3 +227,3 @@ | ||
* @param {*} val | ||
* @return {Boolean} | ||
* @return {boolean} | ||
*/ | ||
@@ -239,3 +239,3 @@ | ||
* @param {*} val | ||
* @return {Boolean} | ||
* @return {boolean} | ||
*/ | ||
@@ -245,3 +245,3 @@ | ||
core.isString = function isString(val) { | ||
return typeof val === 'string'; | ||
return typeof val === 'string' || val instanceof String; | ||
}; | ||
@@ -248,0 +248,0 @@ |
{ | ||
"name": "metal", | ||
"version": "2.0.0", | ||
"version": "2.2.3", | ||
"description": "Core functions from Metal.js, with utilities for dealing with arrays, objects and others.", | ||
@@ -5,0 +5,0 @@ "license": "BSD-3-Clause", |
@@ -107,3 +107,3 @@ 'use strict'; | ||
* @param {*} val | ||
* @return {Boolean} | ||
* @return {boolean} | ||
*/ | ||
@@ -117,3 +117,3 @@ static isDefAndNotNull(val) { | ||
* @param {*} val | ||
* @return {Boolean} | ||
* @return {boolean} | ||
*/ | ||
@@ -127,3 +127,3 @@ static isDocument(val) { | ||
* @param {*} val | ||
* @return {Boolean} | ||
* @return {boolean} | ||
*/ | ||
@@ -146,3 +146,3 @@ static isElement(val) { | ||
* @param {*} val | ||
* @return {Boolean} | ||
* @return {boolean} | ||
*/ | ||
@@ -165,3 +165,3 @@ static isNull(val) { | ||
* @param {*} val | ||
* @return {Boolean} | ||
* @return {boolean} | ||
*/ | ||
@@ -186,3 +186,3 @@ static isWindow(val) { | ||
* @param {*} val | ||
* @return {Boolean} | ||
* @return {boolean} | ||
*/ | ||
@@ -196,6 +196,6 @@ static isPromise(val) { | ||
* @param {*} val | ||
* @return {Boolean} | ||
* @return {boolean} | ||
*/ | ||
static isString(val) { | ||
return typeof val === 'string'; | ||
return typeof val === 'string' || val instanceof String; | ||
} | ||
@@ -202,0 +202,0 @@ |
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
50139