UNPKG

tastypie

Version:

Tastypie is a webservice API framework for Node.js based on Django's Tastypie Framework. It provides a convenient, yet powerful and highly customizable, abstraction for creating REST-style interfaces

14 lines (11 loc) 323 B
define(['../lang/toString'], function(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; } return endsWith; });