Mohamed Eltuhamy
Mohamed Eltuhamy
Thanks @yonsonsal, I've also noticed bad source mapping occasionally in my apps. I'll have a look soon.
You could also potentially use request idle callback when building the index so that the main ui isnt blocked https://developers.google.com/web/updates/2015/08/using-requestidlecallback
In lodash, [`isString`](https://github.com/lodash/lodash/blob/6fbcaf681db59b2309800deb886aa09d66c111e9/lodash.js#L6650) handles this case using a combination of `typeof` and [`toString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString#Using_toString_to_detect_object_type): ``` js function isString(value) { return typeof value == 'string' || (value && typeof value == 'object'...
seems to work https://runkit.com/meltuhamy/5b1faf06fba94100126a5bbb