back to Overview

Minified Lists

Minified lists are Array-like objects provided by Minified.
Available in all modules.

Description

Minified lists are Array-like objects provided by Minified. Like a regular JavaScript array, they provide a length property and you can access their content using the index operator (a[5]). However, they do not provide the same methods as JavaScript's native array and are designed to be immutable, so there is no direct way to add something to a Minified list. Instead Minified provides a number of functions and methods that take a list and create a modified copy which, for example, may contain additional elements.

Minified lists are typically created either using the Web module's $() function or with the Util module's _() function, but many functions in the Util module also return a Minified list.

The Util module provides a function _.array() that converts a Minified list to a regular JavaScript array.

Comments

comments powered by Disqus

back to Overview

Functions