Logo

Programming-Idioms

History of Idiom 97 > diff from v6 to v7

Edit summary for version 7 by :

Version 6

2015-10-28, 01:50:21

Version 7

2015-10-29, 14:05:17

Idiom #97 Check string suffix

Set boolean b to true if string s ends with suffix suffix, false otherwise.

Idiom #97 Check string suffix

Set boolean b to true if string s ends with suffix suffix, false otherwise.

Code
var b = s.endsWith(suffix);
Code
var b = s.endsWith(suffix);
Demo URL
https://dartpad.dartlang.org/d1a3ff95d5f47c0f2f0f
Demo URL
https://dartpad.dartlang.org/d1a3ff95d5f47c0f2f0f