Skip to content
Brought to you by Allons-y Studio
dashly A standard library of filters, transforms, & shortcodes for Eleventy

objects

In Filters

Object-related filters for Eleventy.

import { keys } from '@allons-y/dashly/filters/objects';

keys(value)

Return the enumerable keys of an object. Returns an empty array for nullish or non-object values so templates can {% for %} safely.

Parameters

Name Type Default Description
value object

Returns

string[]

Allons-y Studio

Let's build something great together

A front-end & design systems studio helping teams ship consistent, accessible UI faster.