Skip to content

Instantly share code, notes, and snippets.

@asiniy
Last active July 4, 2018 07:40
Show Gist options
  • Save asiniy/c15fd5bc0bc607cc2a98ff343ecdaf77 to your computer and use it in GitHub Desktop.
Save asiniy/c15fd5bc0bc607cc2a98ff343ecdaf77 to your computer and use it in GitHub Desktop.
zealit // Extending JavaScript with ease (beginner level tutorial)
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