UNPKG

orionsoft-react-scripts

Version:

Orionsoft Configuration and scripts for Create React App.

15 lines (14 loc) 368 B
'use strict'; exports.__esModule = true; exports.default = getArguments; function getArguments(node) { return node.nodes.reduce(function (list, child) { if (child.type !== 'div') { list[list.length - 1].push(child); } else { list.push([]); } return list; }, [[]]); } module.exports = exports['default'];