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

x/chai/lib/chai/utils/getOwnEnumerableProperties.js>getOwnEnumerableProperties

BDD / TDD assertion framework for node.js and the browser that can be paired with any testing framework.
Latest
function getOwnEnumerableProperties
import { getOwnEnumerableProperties } from "https://deno.land/x/chai@v5.1.2/lib/chai/utils/getOwnEnumerableProperties.js";

.getOwnEnumerableProperties(object)

This allows the retrieval of directly-owned enumerable property names and symbols of an object. This function is necessary because Object.keys only returns enumerable property names, not enumerable property symbols.