last function
- List array
Gets the last element of array.
Uses dart's List.last
property
Example
_.last(["Dart", "Javascript", "Swift"]);
// Returns "Swift"
Implementation
dynamic last(List array) {
return array.last;
}
Gets the last element of array.
Uses dart's List.last
property
Example
_.last(["Dart", "Javascript", "Swift"]);
// Returns "Swift"
dynamic last(List array) {
return array.last;
}