export function isEven ( number ) { return number % 2 === 0 ; } export function isOdd ( number ) { return number % 2 === 1 ; } export function countCharacter ( target , regExp ) { return ( target . match ( regExp ) || [ ] ) . length ; }