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 7d8a3c8 commit c45c9cc
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,6 +0,0 @@
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 c45c9cc

Please sign in to comment.