import { ld } from 'https://x.nest.land/deno-lodash@1.0.0/mod.ts';
let words = ['sky', 'wood', 'forest', 'falcon',
'pear', 'ocean', 'universe'];
let fel = ld.first(words);
let lel = ld.last(words);
console.log(`First element: ${fel}`);
console.log(`Last element: ${lel}`);
deno run --allow-read --unstable --allow-env https://x.nest.land/deno-lodash@1.0.0/usage-example.ts
deno test --allow-read --unstable --allow-env https://x.nest.land/deno-lodash@1.0.0/test.ts
Author: michael-spengler
Source Code: https://github.com/michael-spengler/deno-lodash
#deno #nodejs #node #javascript