Logo

Programming-Idioms

History of Idiom 97 > diff from v4 to v5

Edit summary for version 5 by :

Version 4

2015-10-18, 13:22:37

Version 5

2015-10-18, 16:00:03

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