w (str) Array
public
Splits a string into separate units separated by spaces, eliminating any empty strings in the process. This is a convenience method for split that is mostly useful when applied to the String.prototype
.
Ember.String.w("alpha beta gamma").forEach(function(key) { console.log(key); }); // > alpha // > beta // > gamma
Parameters:
-
str
String
- The string to split
Returns:
-
Array
- array containing the split strings
Please login to continue.