@rnx-kit/tools-language
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

@rnx-kit/tools-language

Build npm version

@rnx-kit/tools-language is a collection of supplemental JavaScript functions and types.

You can import the entire package, or, to save space, import individual categories:

import * tools from "@rnx-kit/tools-language";
Category Function Description
properties hasProperty(obj, property) Returns whether property exists in obj.
properties keysOf(obj) Returns the names of the enumerable string properties of an object. Equivalent to calling Object.keys(), but type safe.
properties pickValues(obj, keys, names) Pick the value for each key property from obj and return each one in a new object. If names are given, use them in the new object, instead of keys.

Readme

Keywords

none

Package Sidebar

Install

npm i @rnx-kit/tools-language

Weekly Downloads

40,721

Version

2.0.1

License

MIT

Unpacked Size

10.8 kB

Total Files

14

Last publish

Collaborators

  • kelset
  • hansenyy
  • jasonvmorse
  • acoates
  • rnbot
  • tido64
  • rnsdkbot