Home > Net >  How to get the value of an anonymous function?
How to get the value of an anonymous function?

Time:12-11

In my index.js file I call the function iterateWagons

src/index.js

import { locomotive } from './data/train.js'
import { iterateWagons, filterOldBreaks } from './utils/train.js'

iterateWagons(
    locomotive,
    wagon => console.log(`           
  • Related