Utils

npm version

Description

This package contains lots of objects and functions built to simplify working with primitives on the framework. It is comprised of tools for:

  • working with arrays,

  • creating collections of a given type,

  • performing some specific numeric and string operations,

  • dealing with intervals,

  • managing time,

  • executing assertions,

  • etc.

Installation

npm install @xethya/utils

Usage

// Bring the entire library.
import * as utils from '@xethya/utils';

// Bring specific subpackages.
import { array } from '@xethya/utils';
import { assert } from '@xethya/utils'; 
import { Collection } from '@xethya/utils'; 
import { numeric } from '@xethya/utils'; 
import { string } from '@xethya/utils'; 
import { Range } from '@xethya/utils'; 
import { Time } from '@xethya/utils'; 

Refer to the Utilities section for more information about this library.

Last updated

Was this helpful?