mirror of
https://github.com/186526/handlers.js
synced 2024-10-13 00:29:43 +00:00
Added NodePlatformAdapter and fixed bug in platform independent functions and added Demo.
This commit is contained in:
@ -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";
|
||||
|
Reference in New Issue
Block a user