Capitalize a string.
Returns a new string in which all occurrences of a substring are replaced with another string.
Given a string with the format of a template literal, expand its placeholders with the values corresponding to a descriptor's keys.
```js var copy = require('@kingjs/is'); ``` result: ```js ``` ## API ```ts declare function is( ): any ``` ### Parameters ### Returns ## Remarks ## Install With [npm](https://npmjs.org/) installed, run ``` $ npm install @kingjs/is ``` #
Renames a function.
Defines a property on a target with a symbol name derived from `package` and `version`.
Add a precondition to an accessor or function descriptor which throws unless `this` at runtime is an `instanceof` a specific type.
Wraps strings found in a descriptor's `value`, `get` or `set` into an appropriate corresponding lambda functions.
Extends `kingjs/reflect.define-property` with richer overloads.
Join lines in a string with a separator.
The master readme template for the `kingjs` scope.
Expands `README.t.md` into `README.md`.
Replaces a description of a function or accessor with a corresponding descriptor that delegates to the original descriptor and caches its result in a a corresponding property on `this`.
Get the visual width of a string - the number of columns required to display it
A utility package to parse strings
Escape RegExp special characters
Extends `Reflect.defineProperty` to allow richer descriptors which can include `callback`, `extends`, and `lazy` properties. And `lazy` can be modified by `writeOnce`, `argument`, and `static`.
Exports all `@kingjs/descriptor.*` functionality in one package.
Indent each line in a string
Generate a range of numbers.
Is this value a JS String object or primitive? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Modify strings, generate sourcemaps
Merges values at paths found in one tree into another tree.
Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value, and the specified function is used to select the result value.