'use strict';

// MODULES //

var bench = require( '@stdlib/bench' );
var isString = require( '@stdlib/assert/is-string' ).isPrimitive;
var pkg = require( './../package.json' ).name;
var ltrim = require( './../lib' );


// MAIN //

bench( pkg, function benchmark( b ) {
	var whitespace;
	var str;
	var out;
	var i;

	whitespace = '\\f\\n\\r\\t\\v\\u00a0\\u1680\\u180e\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000\\ufeff';

	b.tic();
	for ( i = 0; i < b.iterations; i++ ) {
		str = whitespace + String.fromCharCode( i%126 ) + 'eep boop';
		out = ltrim( str );
		if ( !isString( out ) ) {
			b.fail( 'should return a string' );
		}
	}
	b.toc();
	if ( !isString( out ) ) {
		b.fail( 'should return a string' );
	}
	b.pass( 'benchmark finished' );
	b.end();
});

@@ -129,16 +129,81 @@
 mitive;%0A
+var fromCodePoint = require( '@stdlib/string/from-code-point' );%0A
 var pkg 
@@ -561,27 +561,21 @@
 e + 
-String.fromCharCode
+fromCodePoint
 ( i%25

Use string utility