
Product
Rust Support in Socket Is Now Generally Available
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.
array.prototype.reverse
Advanced tools
An ES5 spec-compliant `Array.prototype.reverse` shim/polyfill/replacement that works as far down as ES3.
An ES spec-compliant Array.prototype.reverse shim/polyfill/replacement that works as far down as ES3.
This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the spec.
Because Array.prototype.reverse depends on a receiver (the “this” value), the main export takes the array to operate on as the first argument.
var reverse = require('array.prototype.reverse');
var assert = require('assert');
var a = [1, 2, 3];
assert.deepEqual(reverse(a), [3, 2, 1]);
assert.deepEqual(a, [3, 2, 1]);
var reverse = require('array.prototype.reverse');
var assert = require('assert');
/* when Array#reverse is not present */
delete Array.prototype.reverse;
var shimmed = reverse.shim();
assert.equal(shimmed, reverse.getPolyfill());
assert.equal(shimmed, Array.prototype.reverse);
assert.deepEqual([1, 2, 3].reverse(), reverse([1, 2, 3]));
var reverse = require('array.prototype.reverse');
var assert = require('assert');
/* when Array#reverse is present */
var shimmed = reverse.shim();
assert.equal(shimmed, Array.prototype.reverse);
assert.deepEqual([1, 2, 3].reverse(), reverse([1, 2, 3]));
Simply clone the repo, npm install, and run npm test
FAQs
An ES5 spec-compliant `Array.prototype.reverse` shim/polyfill/replacement that works as far down as ES3.
The npm package array.prototype.reverse receives a total of 1 weekly downloads. As such, array.prototype.reverse popularity was classified as not popular.
We found that array.prototype.reverse demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.

Research
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.