Skip to main content
variable lowercaseKeys
import { lowercaseKeys } from "https://deno.land/x/30_seconds_of_typescript@v1.0.1/util.ts";

Creates a new object from the specified object, where all the keys are in lowercase.

Use Object.keys() and Array.prototype.reduce() to create a new object from the specified object. Convert each key in the original object to lowercase, using String.toLowerCase().

type

(obj: AnyObject, deep?) => unknown