'use strict' ; export function startsWithCaseInsentively ( haystack , needle ) { if ( haystack . length < needle . length ) { return false ; } for ( let i = 0 ; i < needle . length ; i ++ ) { if ( haystack [ i ] . toLowerCase ( ) !== needle [ i ] . toLowerCase ( ) ) { return false ; } } return true ; } export function repeat ( value , count ) { let s = '' ; while ( count > 0 ) { if ( ( count & 1 ) === 1 ) { s += value ; } value += value ; count = count >>> 1 ; } return s ; }