clearEmber.Array
public
Remove all elements from the array. This is useful if you want to reuse an existing array without having to recreate it.
let colors = ['red', 'green', 'blue']; color.length(); // 3 colors.clear(); // [] colors.length(); // 0
Returns:
-
Ember.Array
- An empty Array.
Please login to continue.