Skip to content

ProtoString Polyfill Methods

Seth Clydesdale edited this page Jun 3, 2015 · 10 revisions

<< Back to ProtoString Method Reference

The methods here are remakes of existing methods provided natively in modern browsers. They can be used as fillers for bad-apple browsers, or as a complete overwrite if you love how our Polyfillers work. Consult the table below for more information on these methods.

Polyfill Methods

Method Description
protoRepeat() Repeats a string the defined number of times.
protoTrim() Trims whitespace from both sides of a string, or a specific side if specified.
template() Provides similar functionality to the ES6 template strings.
Clone this wiki locally