Skip to content

Commit

Permalink
13-lodash.js file creation
Browse files Browse the repository at this point in the history
  • Loading branch information
dasanupam1001 committed Aug 21, 2023
1 parent c45c9cc commit fb615e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions 13-lodash.js
Original file line number Diff line number Diff line change
@@ -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!')

0 comments on commit fb615e8

Please sign in to comment.