PHP Classes

File: View/Javascripts/MString.js

Recommend this page to a friend!
  Classes of Michele Pagnin   MToolkit   View/Javascripts/MString.js   Download  
File: View/Javascripts/MString.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: MToolkit
PHP Web application framework that supports MVC
Author: By
Last change:
Date: 9 years ago
Size: 286 bytes
 

Contents

Class file image Download
var MString = function(string) { this.string = string; }; MString.prototype.endsWith = function(prefix) { return this.string.indexOf(prefix) == 0; }; MString.prototype.endsWith = function(suffix) { return this.string.indexOf(suffix, this.length - suffix.length) !== -1; };