Files
OpenBB/website/public/js/groupBy-174feb11c7.min.js
Artem Veremey e7e49538b0 Synchronize master and main (#705)
* hugo server

* Update test.yml

* Update test.yml

* Create gh-pages.yml

* Update gh-pages.yml

* Update config.toml

* Update config.toml

* update themes and public

* Update gh-pages.yml

* Update gh-pages.yml

* Update gh-pages.yml

* remove themes

* add themes

* Update gh-pages.yml

* Update config.toml

* Update config.toml

* remove

* re-add theme

* Update config.toml

* Update config.toml

* Update config.toml

* Update gh-pages.yml

* Update gh-pages.yml

* Update config.toml

* Update config.toml

* Update config.toml

* Update _index.md

* Update config.toml

* Update gh-pages.yml

* Update README.md

* Update README.md

Co-authored-by: didier <dro.lopes@campus.fct.unl.pt>
2021-08-23 09:03:23 +01:00

1 line
509 B
JavaScript
Vendored

const groupBy=(r,...e)=>{let t=r.map(t=>e.map(e=>e(t))),a={};return t.forEach((e,t)=>{t=(_simpleAt(a,e)||[]).concat([r[t]]);_simpleSet(a,e,t)}),a},_isPlainObject=e=>null!=e&&"object"==typeof e&&e.constructor==Object,_parsePath=e=>Array.isArray(e)?e:`${e}`.split("."),_simpleAt=(e,t)=>_parsePath(t).reduce((e,t)=>null!=e&&e.hasOwnProperty(t)?e[t]:void 0,e),_simpleSet=(e,t,s)=>_parsePath(t).reduce((e,t,r,a)=>{a=r===a.length-1;return e.hasOwnProperty(t)&&(a||_isPlainObject(e[t]))||(e[t]={}),a?e[t]=s:e[t]},e);