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

Add back Record.isRecord #124

Merged
merged 1 commit into from
May 28, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions NS-Proto-Appendix.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

Converts shallowly an object to a record. If the object has a non-const value, a TypeError will be thrown.

## `Record.isRecord(value) -> boolean`

Checks whether the parameter is either a Record primitive or Record wrapper.

## `Record.assign(...args: Record[]) -> Record`

Merges all records passed as arguments into one **new** record returned by the function. The latest argument will override arguments before when merging.
Expand Down