Skip to content
This repository was archived by the owner on May 12, 2018. It is now read-only.
/ js-polyfills Public archive
forked from nektro/js-polyfills

Some ECMAScript function you've always wanted but never had...

Notifications You must be signed in to change notification settings

cactysman/js-polyfills

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

js-polyfills

Some ECMAScript function you've always wanted but never had access to...


String.prototype.replaceAll
`(with, what)` :: Replace all occurences of {with} with {what}
Array.prototype.random
`()` :: Return the value of this Array at a random index
HTMLCollection.prototype.indexOf
`(i)` :: Alias of Array.prototype.indexOf for HTMLCollection
HTMLCollection.prototype.forEach
`(fn(v,i))` :: Alias of Array.prototype.forEach for HTMLCollection
Array.prototype.powerSet
`()` :: Return the [power set](https://en.wikipedia.org/wiki/Power_set) of this Array as an Iterable
Array.prototype.clean
`(v)` :: Return this Array with all occurences of `{v}` removed

About

Some ECMAScript function you've always wanted but never had...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%