UNPKG

string.prototype.startswith

Version:

A robust & optimized `String.prototype.startsWith` polyfill, based on the ECMAScript 6 specification.

10 lines (6 loc) 220 B
/*! https://mths.be/startswith v1.0.0 by @mathias */ 'use strict'; var implementation = require('./implementation'); module.exports = function getPolyfill() { return String.prototype.startsWith || implementation; };