Write .words()
This commit is contained in:
parent
10d7c5a686
commit
76758547dc
1 changed files with 4 additions and 0 deletions
|
@ -21,5 +21,9 @@ _.inRange = function (num, start, end) {
|
|||
return start <= num && num < end
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------- words ---- */
|
||||
|
||||
_.words = (string) => string.split(' ')
|
||||
|
||||
// Do not write or modify code below this line.
|
||||
module.exports = _
|
||||
|
|
Loading…
Reference in a new issue