Last active
July 4, 2018 07:40
-
-
Save asiniy/c15fd5bc0bc607cc2a98ff343ecdaf77 to your computer and use it in GitHub Desktop.
zealit // Extending JavaScript with ease (beginner level tutorial)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import zealit from 'zealit' | |
// A reminder - collectorGroup looks like: | |
// const collectorGroup = { target_count: 10 } | |
const fetchedObject = zealit(collectorGroup) | |
fetchedObject.target_count // returns 10 | |
fetchedObject.targets_count // throws a ReferenceError |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment