/js-polyfills

js-polyfills

Primary LanguageJavaScriptMIT LicenseMIT

javascript-polyfills

Installing

$ npm install javascript-polyfills 

Usage

require('javascript-polyfills') // globally available

let str = 'foobar'
str.replaceAll('bar', 'baz') // 'foobaz'

let str1 = 'aa^$^cc'
str1.replaceAll('^$^', 'bb') // 'aabbcc'