Logo

Programming-Idioms

History of Idiom 96 > diff from v3 to v4

Edit summary for version 4 by :

Version 3

2015-10-08, 12:53:53

Version 4

2015-10-18, 13:22:10

Idiom #96 Check string prefix

Set boolean b to true if string s starts with prefix prefix, false otherwise.

Idiom #96 Check string prefix

Set boolean b to true if string s starts with prefix prefix, false otherwise.

Code
var b = s.startsWith(prefix);