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

es5-ext

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es5-ext - npm Package Compare versions

Comparing version 0.8.1 to 0.8.2

1

lib/Array/prototype/diff.js

@@ -5,3 +5,2 @@ 'use strict';

, forEach = Array.prototype.forEach
, not = require('../../Function/prototype/not')
, value = require('../../Object/valid-value')

@@ -8,0 +7,0 @@ , copy = require('./copy')

5

lib/Array/prototype/exclusion.js

@@ -6,3 +6,2 @@ 'use strict';

, call = Function.prototype.call
, not = require('../../Function/prototype/not')
, value = require('../../Object/valid-value')

@@ -24,3 +23,5 @@ , toArray = require('../from')

return !contains.call(list, item);
}).concat(filter.call(list, not.call(contains.bind(seen))));
}).concat(filter.call(list, function (x) {
return !contains.call(seen, x);
}));
push.apply(seen, toArray(list));

@@ -27,0 +28,0 @@ });

@@ -18,3 +18,5 @@ 'use strict';

return lists.reduce(function (a, b) {
return filter.call(a, contains.bind(b));
return filter.call(a, function (x) {
return contains.call(b, x);
});
});

@@ -21,0 +23,0 @@ } else {

@@ -5,3 +5,3 @@ 'use strict';

, format = require('../../String/prototype/format')
, date = require('../valid-date');
, date = require('../valid-date');

@@ -8,0 +8,0 @@ var map = {

@@ -39,4 +39,3 @@ 'use strict';

module.exports = function (length, resolvers) {
var fn, mfn, resolver, cache, find, save, clear
, value;
var fn, mfn, resolver, cache, find, save, clear, value;

@@ -43,0 +42,0 @@ fn = callable(this);

{
"name": "es5-ext",
"version": "0.8.1",
"version": "0.8.2",
"description": "ECMAScript5 extensions",

@@ -5,0 +5,0 @@ "keywords": [

@@ -48,3 +48,3 @@ # es5-ext - ECMAScript5 extensions

* `Array.prototype` methods can be run on any object (any
* `Array.prototype`, `Number.prototype` and `String.prototype`, methods can be run on any object (any
value that's neither _null_ nor _undefined_),

@@ -54,7 +54,4 @@ * `Date.prototype` methods should be called only on `Date` instances.

necessarily functions)
* `Number.prototype` & `String.prototype` methods can be called on any value, in
case of Number it’ll be degraded to number, in case of string it’ll be
degraded to string.
API doesn't provide any methods for `Object.prototype` as extending such in any case should be avoided. All `Object` utils are provided as fuctions.
API doesn't provide any methods for `Object.prototype` as extending such in any case should be avoided. All `Object` utils are provided as fuctions and most of them expect first input argument to be a valid object (any value that's neither _null_ nor _undefined_).

@@ -482,3 +479,3 @@ # API

Returns copy of the object with all enumerable properties. Additionally nested objects can be copied aswell
Returns copy of the object with all enumerable properties. Additionally nested objects can be copied as well

@@ -485,0 +482,0 @@ ### count(obj)

@@ -21,3 +21,5 @@ 'use strict';

a.deep(t.call(r, r), r, "Same");
a.deep(t.call([1, 2, x, 4, 5, y, 7], [7, y, 5, 4, x, 2, 1]),
[1, 2, x, 4, 5, y, 7], "Long reverse same");
}
};

Sorry, the diff of this file is not supported yet

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