This snippet returns the length of a string in bytes.
const byteSize = str => new Blob([str]).size; byteSize('😀'); // 4 byteSize('Hello World'); // 11
Username
Password
Remember Me
Email
Username or Email