🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

map-plus

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

map-plus - npm Package Compare versions

Comparing version
1.0.2
to
1.0.3
+1
-3
index.js

@@ -17,8 +17,6 @@ var isObject = obj => {

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;
};

@@ -25,0 +23,0 @@

{
"name": "map-plus",
"version": "1.0.2",
"version": "1.0.3",
"description": "Creates a new array of values by mapping each value in list through an iteratee.",

@@ -36,14 +36,14 @@ "main": "index.js",

"devDependencies": {
"@rollup/plugin-commonjs": "^11.0.2",
"@rollup/plugin-node-resolve": "^7.1.1",
"@rollup/plugin-commonjs": "^16.0.0",
"@rollup/plugin-node-resolve": "^10.0.0",
"babel-eslint": "^10.1.0",
"chai": "^4.2.0",
"eslint": "^6.8.0",
"karma": "^4.4.1",
"eslint": "^7.12.1",
"karma": "^5.2.3",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^3.1.0",
"karma-mocha": "^1.3.0",
"mocha": "^7.1.1",
"rollup": "^2.3.0"
"karma-mocha": "^2.0.1",
"mocha": "^8.2.1",
"rollup": "^2.33.1"
}
}
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = global || self, global.map = factory());
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.map = factory());
}(this, (function () { 'use strict';

@@ -23,8 +23,6 @@

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;
};

@@ -31,0 +29,0 @@