@petamoriken/float16
Advanced tools
Comparing version 3.5.7 to 3.5.8
@@ -1,2 +0,2 @@ | ||
/*! @petamoriken/float16 v3.5.7 | MIT License - https://git.io/float16 */ | ||
/*! @petamoriken/float16 v3.5.8 | MIT License - https://git.io/float16 */ | ||
@@ -73,2 +73,3 @@ const float16 = (function (exports) { | ||
const TypedArrayPrototype = TypedArray.prototype; | ||
const NativeTypedArrayPrototypeSymbolIterator = TypedArrayPrototype[SymbolIterator]; | ||
const TypedArrayPrototypeKeys = uncurryThis(TypedArrayPrototype.keys); | ||
@@ -327,3 +328,3 @@ const TypedArrayPrototypeValues = uncurryThis( | ||
function isIterable(value) { | ||
return typeof value[SymbolIterator] === "function"; | ||
return value != null && typeof value[SymbolIterator] === "function"; | ||
} | ||
@@ -334,7 +335,7 @@ function isOrdinaryArray(value) { | ||
} | ||
if (value[SymbolIterator] === NativeArrayPrototypeSymbolIterator) { | ||
return true; | ||
} | ||
const iterator = value[SymbolIterator](); | ||
if (iterator[SymbolToStringTag] !== "Array Iterator") { | ||
return false; | ||
} | ||
return true; | ||
return iterator[SymbolToStringTag] === "Array Iterator"; | ||
} | ||
@@ -345,7 +346,7 @@ function isOrdinaryTypedArray(value) { | ||
} | ||
if (value[SymbolIterator] === NativeTypedArrayPrototypeSymbolIterator) { | ||
return true; | ||
} | ||
const iterator = value[SymbolIterator](); | ||
if (iterator[SymbolToStringTag] !== "Array Iterator") { | ||
return false; | ||
} | ||
return true; | ||
return iterator[SymbolToStringTag] === "Array Iterator"; | ||
} | ||
@@ -363,6 +364,3 @@ function isCanonicalIntegerIndexString(value) { | ||
} | ||
if (number !== MathTrunc(number)) { | ||
return false; | ||
} | ||
return true; | ||
return number === MathTrunc(number); | ||
} | ||
@@ -369,0 +367,0 @@ |
@@ -47,3 +47,3 @@ /** | ||
*/ | ||
at(index: number): number; | ||
at(index: number): number | undefined; | ||
@@ -154,5 +154,5 @@ /** | ||
* Performs the specified action for each element in an array. | ||
* @param callbackfn A function that accepts up to three arguments. forEach calls the | ||
* @param callbackfn A function that accepts up to three arguments. forEach calls the | ||
* callbackfn function one time for each element in the array. | ||
* @param thisArg An object to which the this keyword can refer in the callbackfn function. | ||
* @param thisArg An object to which the this keyword can refer in the callbackfn function. | ||
* If thisArg is omitted, undefined is used as the this value. | ||
@@ -176,3 +176,3 @@ */ | ||
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the | ||
* search starts at index 0. | ||
* search starts at index 0. | ||
*/ | ||
@@ -179,0 +179,0 @@ indexOf(searchElement: number, fromIndex?: number): number; |
{ | ||
"name": "@petamoriken/float16", | ||
"version": "3.5.7", | ||
"version": "3.5.8", | ||
"description": "IEEE 754 half-precision floating-point for JavaScript", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
Sorry, the diff of this file is not supported yet
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
216093
5685