Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- map({on: 1, off: 0}, ['on', 'on', 'off', 'on', 'off']); //=> [1, 1, 0, 1, 0]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement