UNPKG

payload

Version:

Node, React, Headless CMS and Application Framework built on Next.js

14 lines (13 loc) 366 B
export const getSelectMode = (select)=>{ for(const key in select){ const selectValue = select[key]; if (selectValue === false) { return 'exclude'; } if (typeof selectValue === 'object') { return getSelectMode(selectValue); } } return 'include'; }; //# sourceMappingURL=getSelectMode.js.map