UNPKG
srcom
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
cli tool to get and post runs to speedrun.com
github.com/slashinfty/srcom
slashinfty/srcom
srcom
/
lib
/
queries
/
stringify.js
12 lines
•
267 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
module
.
exports
= {
name
:
'stringify'
,
returnString
:
(
array
) =>
{
let
str =
''
; array.
forEach
(
(
el, i
) =>
{
let
name =
'['
+ (i +
1
) +
'] '
+ el.
name
; name += i === (array.
length
-
1
) ?
''
:
'\n'
; str += name; })
return
str; } };