Skip to content

Files

Latest commit

8be3fd8 · Sep 27, 2022

History

History

utils

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Sep 27, 2022
Sep 27, 2022
Sep 27, 2022
Sep 15, 2022
Sep 15, 2022
Sep 16, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 23, 2022
Sep 15, 2022
Sep 15, 2022
Aug 16, 2022
Aug 16, 2022
Sep 15, 2022
Sep 16, 2022
Sep 15, 2022
Sep 16, 2022
Sep 16, 2022
Sep 15, 2022
Sep 15, 2022
Sep 16, 2022
Sep 16, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 16, 2022
Sep 15, 2022
Sep 15, 2022
Sep 16, 2022
May 11, 2022
Mar 17, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Jul 28, 2022
Sep 15, 2022
Sep 12, 2022
Sep 27, 2022
Sep 27, 2022
Sep 27, 2022
Sep 27, 2022
Sep 27, 2022
Sep 27, 2022
Sep 15, 2022
Sep 5, 2021
Sep 27, 2022
Sep 27, 2022
Sep 27, 2022
Feb 4, 2019
Sep 15, 2022
Sep 15, 2022
Mar 17, 2022
Apr 29, 2022
Sep 27, 2022
Sep 16, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 27, 2022
Sep 27, 2022
Sep 27, 2022
Sep 27, 2022
Sep 27, 2022
Sep 27, 2022
Sep 27, 2022
Mar 17, 2022
Mar 17, 2022
Sep 27, 2022
Sep 27, 2022
Sep 27, 2022
Sep 27, 2022
Sep 27, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 27, 2022
Sep 27, 2022
Aug 20, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Mar 17, 2022
Sep 15, 2022
Sep 15, 2022
Mar 18, 2022
Mar 17, 2022
Mar 17, 2022
Sep 15, 2022
Mar 17, 2022
May 11, 2022
May 11, 2022
Apr 23, 2022
Apr 27, 2022
Mar 28, 2022
Mar 28, 2022
Mar 17, 2022
Sep 15, 2022
Sep 16, 2022
Sep 15, 2022
May 11, 2022
Mar 17, 2022
Sep 16, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 27, 2022
Sep 27, 2022
Sep 27, 2022
Sep 27, 2022
Sep 27, 2022
Sep 27, 2022
Sep 27, 2022
Sep 27, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Mar 17, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 27, 2022
Sep 27, 2022
Sep 7, 2021
Sep 7, 2021
Sep 7, 2021
Sep 7, 2021
Sep 27, 2022
Sep 27, 2022
Sep 27, 2022
Sep 27, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Mar 17, 2022
Mar 17, 2022
Apr 23, 2022
Sep 15, 2022
Mar 17, 2022
Mar 29, 2022
Mar 17, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 27, 2022
Sep 27, 2022
Sep 27, 2022
Sep 15, 2022
Sep 27, 2022
Sep 27, 2022
Feb 4, 2019
Aug 20, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 20, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 20, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 27, 2022
Sep 15, 2022
Sep 27, 2022
Sep 27, 2022
Sep 15, 2022
Sep 15, 2022
Sep 15, 2022
Sep 27, 2022
Sep 27, 2022
Sep 27, 2022
Sep 27, 2022
Sep 27, 2022
Sep 27, 2022
Sep 27, 2022
Aug 29, 2022
Aug 12, 2021

Utils

Utilities.

Usage

var utils = require( '@stdlib/utils' );

utils

Namespace containing utilities.

var o = utils;
// returns {...}

The namespace has the following sub-namespaces:

  • async: async utilities.

Data Structures

Collections

Arrays

Objects

Functions

Error Handling

  • trycatch( x, y ): if a function does not throw, return the function return value; otherwise, return y.
  • tryFunction( fcn ): wrap a function in a try/catch block.
  • tryRequire( id ): wrap require in a try/catch block.
  • trythen( x, y ): if a function does not throw, return the function return value; otherwise, return the return value of a second function.

General Utilities

Examples

var objectKeys = require( '@stdlib/utils/keys' );
var utils = require( '@stdlib/utils' );

console.log( objectKeys( utils ) );