Module

x/lodash_es/src/lang.js>toArray

lodash for deno use
Latest
function toArray
import { toArray } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/lang.js";

Converts value to an array.

Examples

_.toArray({ 'a': 1, 'b': 2 }); // => [1, 2]

_.toArray('abc'); // => ['a', 'b', 'c']

_.toArray(1); // => []

_.toArray(null); // => []

Parameters

value

The value to convert.