u200b
Version:
Append, prepend, and insert zero-width space to string.
16 lines (8 loc) • 581 B
JavaScript
const assert = require( "assert" );
const llamalize = require( "./llamalize.js" );
assert.equal( llamalize( "hello-world" ), "helloWorld", "should be equal to 'helloWorld'" );
assert.equal( llamalize( "hello_world" ), "helloWorld", "should be equal to 'helloWorld'" );
assert.equal( llamalize( "helloWorld" ), "helloWorld", "should be equal to 'helloWorld'" );
assert.equal( llamalize( "hello world" ), "helloWorld", "should be equal to 'helloWorld'" );
assert.equal( llamalize( "hello world", true ), "HelloWorld", "should be equal to 'HelloWorld'" );
console.log( "ok" );