import * as ayonliJsext from "https://deno.land/x/ayonli_jsext@v0.9.72/object/index.ts";
Functions for dealing with objects.
Functions
f as | Checks if the value is an instance of the given type, returns the value itself if passed,
otherwise returns |
Compares two values, returns | |
Performs a deep comparison between two values to see if they are equivalent or contain the same data. | |
Returns a new record with all entries of the given record except the ones that do not match the given predicate. | |
Create an object with flatted keys of the original object, the children nodes' properties will be transformed to a string-represented path. | |
Returns | |
Returns | |
Composes a new record with all keys and values inverted. | |
Returns | |
Returns | |
Applies the given transformer to all entries in the given record and returns a new record containing the results. | |
f omit | Creates an object composed without the picked keys. |
Returns a tuple of two records with the first one containing all entries of the given record that match the given predicate and the second one containing all that do not. | |
Copies the key-value pairs that are presented in the source objects but are missing in the target object into the target, later pairs are skipped if the same key already exists. | |
f pick | Creates an object composed of the picked keys. |
Creates an object base on the original object but without any invalid values
(except for | |
Creates an object with sorted keys (in ascending order) of the original object. | |
Returns a string representation or the constructor of the value's type. |