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