Add includes method to String interface, and remove contains

This commit is contained in:
kimamula
2015-07-18 18:46:40 +09:00
parent 2c5ba08266
commit 9c9e39e7a3
5 changed files with 55 additions and 1 deletions

2
src/lib/es6.d.ts vendored
View File

@@ -377,7 +377,7 @@ interface String {
* @param searchString search string
* @param position If position is undefined, 0 is assumed, so as to search all of the String.
*/
contains(searchString: string, position?: number): boolean;
includes(searchString: string, position?: number): boolean;
/**
* Returns true if the sequence of elements of searchString converted to a String is the