Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
string.prototype.endswith
Advanced tools
A robust & optimized `String.prototype.endsWith` polyfill, based on the ECMAScript 6 specification.
String.prototype.endsWith
polyfill A robust & optimized ES3-compatible polyfill for the String.prototype.endsWith
method in ECMAScript 6.
Other polyfills for String.prototype.endsWith
are available:
In a browser:
<script src="endswith.js"></script>
Via npm:
npm install string.prototype.endswith
Then, in Node.js:
require('string.prototype.endswith');
// On Windows and on Mac systems with default settings, case doesn’t matter,
// which allows you to do this instead:
require('String.prototype.endsWith');
Polyfills + test suites for String.prototype.startsWith
and String.prototype.contains
are available, too.
Mathias Bynens |
This polyfill is available under the MIT license.
v0.2.0 - 2014-04-10
#5
Object.defineProperty
e27c8f2
cc63a25
endsWith
property non-enumerable bffbff9
lastIndexOf
bb6501c
ca2dddb
c20c83a
ToString(this)
f375ac0
960fccb
charCodeAt
instead of charAt
bb1901f
isNaN
dd38046
c34bff5
f51af73
e10ff32
c28d87c
2e2d880
FAQs
A robust & optimized `String.prototype.endsWith` polyfill, based on the ECMAScript 6 specification.
The npm package string.prototype.endswith receives a total of 18,318 weekly downloads. As such, string.prototype.endswith popularity was classified as popular.
We found that string.prototype.endswith demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.