Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 02eba76

Browse files
authored
Update README.md
1 parent b24905a commit 02eba76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,10 @@ var scope = JS.CreateScope(
181181

182182
JS.eval("arg", scope) //= "value"
183183
JS.eval("reverse(arg)", scope) //= "eulav"
184-
JS.eval("itemsOf(3, padRight(reverse(arg), 8, '_'))", scope) //= ["eulav___", "eulav___", "eulav___"]
184+
JS.eval("3.itemsOf(arg.reverse().padRight(8, '_'))", scope) //= ["eulav___", "eulav___", "eulav___"]
185185
186186
//= { a: ["eulav___", "eulav___", "eulav___"] }
187-
JS.eval("{a: itemsOf(3, padRight(reverse(arg), 8, '_')) }", scope)
187+
JS.eval("{a: 3.itemsOf(arg.reverse().padRight(8, '_')) }", scope)
188188
```
189189

190190
ServiceStack's JS Utils is available in the [ServiceStack.Common](https://www.nuget.org/packages/ServiceStack.Common) NuGet package.

0 commit comments

Comments
 (0)