@metreeca/core - v0.9.1
    Preparing search index...

      @metreeca/core - v0.9.1

      Type guards, safe casts, and core utilities.

      Runtime Guards

      Type guards for runtime JavaScript types.

      isDefined

      Checks if a value is not undefined or null.

      isEmpty

      Checks if a value is an empty plain object or an empty array.

      isSymbol

      Checks if a value is a symbol.

      isFunction

      Checks if a value is a function.

      isError

      Checks if a value is an Error instance.

      isPromise

      Checks if a value is a promise.

      isIterable

      Checks if a value is iterable.

      isAsyncIterable

      Checks if a value is async iterable.

      Value Guards

      Type guards for JSON-like primitive values and data structures.

      isBoolean

      Checks if a value is a boolean.

      isNumber

      Checks if a value is a finite number.

      isString

      Checks if a value is a string.

      isObject

      Checks if a value is a plain object.

      isArray

      Checks if a value is an array.

      Value Casts

      Safe casts for JSON-like primitive values and data structures.

      asBoolean

      Retrieves a value as a boolean if it is one, otherwise returns undefined.

      asNumber

      Retrieves a value as a number if it is one, otherwise returns undefined.

      asString

      Retrieves a value as a string if it is one, otherwise returns undefined.

      asObject

      Retrieves a value as a plain object if it is one, otherwise returns undefined.

      asArray

      Retrieves a value as an array if it is one, otherwise returns undefined.

      Structural Utilities

      Utilities for structural operations on runtime types.

      equals

      Checks deep object equality.

      immutable

      Creates an immutable deep clone.

      Error Utilities

      Utilities for error handling.

      error

      Throws an error in expression contexts.