Added NodePlatformAdapter and fixed bug in platform independent functions and added Demo.

This commit is contained in:
2022-06-29 15:00:01 +00:00
committed by GitHub
parent f3c0d646e3
commit bdbb5deda9
18 changed files with 432 additions and 105 deletions

View File

@ -1,5 +1,5 @@
export const firstUpperCase = ([first, ...rest]: string) =>
first?.toUpperCase() + rest.join("");
first?.toUpperCase() + rest.map((e) => e.toLowerCase()).join("");
export const platform = (() => {
if (typeof process != "undefined") {
return "Node.js";