Logo

Programming-Idioms

History of Idiom 96 > diff from v5 to v6

Edit summary for version 6 by :

Version 5

2015-10-18, 16:01:48

Version 6

2015-10-18, 16:05:02

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);
Code
var b = s.startsWith(prefix);
Origin
https://dartpad.dartlang.org/16ad80ec8a9685995d1d
Demo URL
https://dartpad.dartlang.org/16ad80ec8a9685995d1d