Example 1 — Official: _.times + stubString
Build an array of empty strings.
_.times(2, _.stubString);
// → ['', ''] How It Works
- Pass by reference.
_.stubString— no trailing(). - Invoke twice.
_.timescalls it for indexes0and1. - Each call. Returns
''. - Collect. Result array is
['', ''].

