vuikit
Version:
A Vuejs component library based on UIkit
18 lines (15 loc) • 386 B
JavaScript
/**
* Vuikit 0.7.0
* (c) 2018 Miljan Aleksic
* @license MIT
*/
const strPrototype = String.prototype
const startsWithFn = strPrototype.startsWith || function (search) {
return this.lastIndexOf(search, 0) === 0
}
/**
* Determines whether a string starts with the characters of a specified string
*/
export default function (str, search) {
return startsWithFn.call(str, search)
}