Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/aloedb/lib/utils.ts

Light, Embeddable, NoSQL database for Deno 🦕
Latest
import * as aloedb from "https://deno.land/x/aloedb@0.9.0/lib/utils.ts";

Functions

Remove all empty items from the array.

Deep clone for objects and arrays. Can also be used for primitives.

Deep targets comparison.

Get number of keys in object.

Get dirname from the path.

Get filename from the path.

Checks whether the value is an array.

Checks whether the value is a boolean.

Checks whether the value is a function.

Checks whether the value is a null.

Checks whether the value is a number.

Checks whether the value is a object.

Checks if the object is empty.

Checks whether the value is a regular expression.

Checks whether the value is a string.

Checks whether the value is undefined.

Generate array of numbers from 0 to Nth.

Prepare array for database storage.

Prepare object for database storage.