From fb615e8636bae96b0ef131a12eb12c751fc9c113 Mon Sep 17 00:00:00 2001 From: Anupam Date: Mon, 21 Aug 2023 12:39:00 +0530 Subject: [PATCH] 13-lodash.js file creation --- 13-lodash.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 13-lodash.js diff --git a/13-lodash.js b/13-lodash.js new file mode 100644 index 0000000..8cdd9ed --- /dev/null +++ b/13-lodash.js @@ -0,0 +1,6 @@ +const _ = require('lodash') + +const items = [1, [2, [3, [4, 5], 6]]] +const newItems = _.flattenDeep(items) // to get a single array from the nested array +console.log(newItems) +console.log('hello world!') \ No newline at end of file