MCPcopy Create free account
hub / github.com/TGX-Android/Publisher / sorted

Function sorted

main.js:3857–3870  ·  view source on GitHub ↗
(unordered)

Source from the content-addressed store, hash-verified

3855});
3856
3857function sorted (unordered) {
3858 return Object.keys(unordered).sort().reduce(
3859 (obj, key) => {
3860 const val = unordered[key];
3861 if (typeof val === 'object') {
3862 obj[key] = JSON.stringify(sorted(val), null, 2);
3863 } else {
3864 obj[key] = val;
3865 }
3866 return obj;
3867 },
3868 {}
3869 );
3870}
3871
3872botMap['private'].sendMessage(ADMIN_USER_ID,
3873 '<b>Bot has started.</b>\n\nPID: <code>' + process.pid +

Callers 1

main.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected