Comment Comment by oblique63 > I think I'd miss patterns like `if (arr.length) { ... }`At least for this particular example, dart supports an 'isNotEmpty' property on all iterables[0], so it'd just be this: if (arr.isNotEmpty) { ... } The core libraries support a lot of useful properties like that.[0] https://api.dartlang.org/apidocs/channels/stable/dartdoc-vie... parent oblique63 12 years ago
At least for this particular example, dart supports an 'isNotEmpty' property on all iterables[0], so it'd just be this:
The core libraries support a lot of useful properties like that.[0] https://api.dartlang.org/apidocs/channels/stable/dartdoc-vie...