Skip to main content
Module

x/obsidian/src/normalize.ts

GraphQL, built for Deno - a native GraphQL caching client and server module
Go to Latest
import * as obsidian from "https://deno.land/x/obsidian@v5.0.0/src/normalize.ts";

Variables

containsHashableObject - Returns a boolean indicating that the passed in value contains a hashable object. It must:

  1. Be an object
  2. Has all hashable keys

hashMaker - Creates unique hash string for an object with hashable keys with hashable object passed in

isHashableObject - Returns a boolean indicating that the passed in value is hashable. It must:

  1. Contain hashable object
  2. Does not have any nesting (i.e., contains no objects or array values)

Recursively flattens an arbitrarily nested object into an objects with hash key and hashable object pairs

printHashableObject - Creates a hashable object from an object that contains a hashable object. Does not print hashable object