UNPKG
@mcphaila/stingray
Version:
latest (1.0.0)
1.0.0
Install: ``` npm install @your-username/my-module ```
@mcphaila/stingray
/
index.ts
5 lines
(4 loc)
•
128 B
text/typescript
View Raw
1
2
3
4
5
import
_
from
'lodash'
;
export
function
makeStringArray
(
n
:
number
,
str
:
string
) {
return
_.
times
(n, _.
constant
(str)); }