-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: JavaScript, Testing Infrastructure
-
None
-
Fully Compatible
-
Build 7 08/10/15
types.js includes naive implementations of convenience helpers String.startsWith() and String.endsWith(). ES6 has these, and has also settled on "String.includes()" as the function for searching a string for a substring. This is a more readable version of .indexOf(foo) >= 0, which is what everyone otherwise does.
Out of scope is improving these to accept the ES6 style optional second parameter to indicate where to start searching from.
- related to
-
SERVER-18796 printShardingStatus/sh.status doesn't show sharded collections which have no "dropped" field
- Closed
-
SERVER-19370 String.endsWith() shouldn't use regexp (even escaped)
- Closed