UNPKG

string.prototype.startswith

Version:

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

13 lines (8 loc) 191 B
'use strict'; var startsWith = require('../'); var test = require('tape'); var runTests = require('./tests'); test('as a function', function (t) { runTests(startsWith, t); t.end(); });