UNPKG
harmonyc
Version:
latest (0.23.2)
0.23.2
0.23.1
0.23.0
0.22.1
0.22.0
0.21.0
0.20.0
0.19.0
0.18.1
0.18.0
0.17.0
0.16.4
0.16.3
0.16.2
0.16.1
0.16.0
0.15.0
0.14.1
0.14.0
0.13.0
0.12.2
0.12.1
0.12.0
0.11.2
0.11.1
0.11.0
0.10.5
0.10.4
0.10.3
0.10.2
0.10.1
0.10.0
0.9.0
0.8.2
0.8.1
0.8.0
0.7.2
0.7.1
0.7.0
0.6.0-9
0.6.0-8
0.6.0-7
0.6.0-6
0.6.0-5
0.6.0-4
0.6.0-3
0.6.0-2
0.6.0-1
0.6.0-0
0.5.0
0.4.3
0.4.2
0.4.1
0.4.0
0.2.0
0.1.1
0.1.0
Harmony Code - model-driven BDD for Vitest
github.com/harmony-ac/code
harmony-ac/code
harmonyc
/
util
/
indent.js
6 lines
(5 loc)
•
132 B
JavaScript
View Raw
1
2
3
4
5
6
export
const
Indent
= (
n
) =>
function
*
indent
(
lines
) {
for
(
const
line
of
lines) {
yield
' '
.
repeat
(n) + line; } };