15 lines
307 B
JavaScript
15 lines
307 B
JavaScript
|
import extractDependancies from 'extractDependancies'
|
||
|
|
||
|
const extractAllDependancies = function(objects) {
|
||
|
|
||
|
const dependancies = []
|
||
|
|
||
|
for (const object of objects) {
|
||
|
extractDependancies(object, dependancies)
|
||
|
}
|
||
|
|
||
|
return dependancies
|
||
|
|
||
|
}
|
||
|
|
||
|
export { extractAllDependancies as default, extractAllDependancies }
|