es-shims

es-shims/string.prototype.trimright

ES2019 spec-compliant shim for String.prototype.trimRight.

JavaScript
8
4
MIT License

This project provides a polyfill (or "shim") for the `String.prototype.trimRight` method, ensuring it works even in older JavaScript environments that don't natively support it. It's designed for developers who need to use `trimRight` in projects with broad browser compatibility, particularly those targeting older browsers or ES3 environments. The package offers a simple way to add this functionality where it's missing, adhering to the ES2019 specification.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of es-shims/string.prototype.trimright

Account's avatar
Robustly `.call.bind()` a function
Account's avatar
Define multiple non-enumerable properties at once. Uses `Object.defineProperty` when available; falls back to standard assignment in older engines.
Account's avatar
ES2019 spec-compliant String.prototype.trimEnd shim.
Account's avatar
Loosely test a package's compliance with the es-shim API
Account's avatar
My shareable eslint config
Account's avatar
Use `npx aud` instead of `npm audit`, whether you have a lockfile or not!
Account's avatar
Does this JS environment support the `name` property on functions?
Account's avatar
Does the current JS environment have strict mode? ES5+ should; but let's not assume.
Account's avatar
the Istanbul command line interface
Account's avatar
Ensure that when you `npm publish`, the "latest" tag is only set for the truly latest version.
Account's avatar
tap-producing test harness for node and browsers

Support the repos that depend on this repository

Top contributors

ljharb's profile
ljharb
78 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet