Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flat-util

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flat-util - npm Package Compare versions

Comparing version 1.1.6 to 1.1.7

4

index.js

@@ -5,8 +5,6 @@ var shallowProperty = key => obj => obj == null ? void 0 : obj[key];

const MAX_ARRAY_INDEX = 2 ** 53 - 1;
var isArrayLike = (collection) => {
const length = getLength(collection);
return typeof length == 'number' && length >= 0 && length <= MAX_ARRAY_INDEX;
return typeof length == 'number' && length >= 0 && length <= Number.MAX_SAFE_INTEGER;
};

@@ -13,0 +11,0 @@

{
"name": "flat-util",
"version": "1.1.6",
"version": "1.1.7",
"description": "Flatten a nested array.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -11,8 +11,6 @@ (function (global, factory) {

const MAX_ARRAY_INDEX = 2 ** 53 - 1;
var isArrayLike = (collection) => {
const length = getLength(collection);
return typeof length == 'number' && length >= 0 && length <= MAX_ARRAY_INDEX;
return typeof length == 'number' && length >= 0 && length <= Number.MAX_SAFE_INTEGER;
};

@@ -19,0 +17,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc