Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/papyrus/utils.ts>filterKeys

Lightweight, modular JSON logger for `Deno` with support for external formatters and transports.
Latest
function filterKeys
import { filterKeys } from "https://deno.land/x/papyrus@v1.0.0/utils.ts";

Iterates through the props of an object, and removes any that can be found in other "lookIn" objects.

Parameters

condition: boolean

Enable filtering when true

object: KeyValuePair

Object who's props have to be filtered

...lookIn: KeyValuePair[]

Object(s) who's keys will be filtered in object