Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: Internal functions #16

Open
6 tasks
mcjcloud opened this issue Jan 16, 2022 · 0 comments
Open
6 tasks

feature: Internal functions #16

mcjcloud opened this issue Jan 16, 2022 · 0 comments

Comments

@mcjcloud
Copy link
Owner

mcjcloud commented Jan 16, 2022

Internal functions are built in to the language and implemented in Go.

Number methods

  • num.format([str]) — uses the given format string to format the number (returns string). If no argument is given, automatically uses the fewest sigfigs.

Object methods

  • obj.get("key") — gets the value for the given key
  • obj.set("key", value) — sets the value for the given key
  • obj.keys() — returns a list of keys as strings
  • obj.values() — returns a list of the values
  • obj.pairs() — returns a 2D array of key-value pairs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant