UNPKG

ember-cli-ajh

Version:

Command line tool for developing ambitious ember.js apps

14 lines (10 loc) 324 B
var toString = require('../lang/toString'); /** * Checks if string ends with specified suffix. */ function endsWith(str, suffix) { str = toString(str); suffix = toString(suffix); return str.indexOf(suffix, str.length - suffix.length) !== -1; } module.exports = endsWith;