String
stringToU8a
stringToU8aimport { stringToU8a } from 'dedot/utils';
stringToU8a('hello world') // new Uint8Array([0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x20, 0x77, 0x6f, 0x72, 0x6c, 0x64])stringToHex
stringToHeximport { stringToHex } from 'dedot/utils';
stringToHex('hello world') // '0x68656c6c6f20776f726c64'stringCamelCase
stringCamelCaseimport { stringCamelCase } from 'dedot/utils';
stringCamelCase('hello world') // helloWorld
stringCamelCase('HelloWorld') // helloWorld
stringCamelCase('helloWorld') // helloWorld
stringCamelCase('hello_world') // helloWorld
stringCamelCase('hello-world') // helloWorldstringPascalCase
stringPascalCasestringSnakeCase
stringSnakeCasestringDashCase
stringDashCasestringLowerFirst
stringLowerFirststringUpperFirst
stringUpperFirstLast updated