import { xor } from 'lodash' ; export const stringIncludes = ( array , value ) : boolean => array . includes ( value ) || array . includes ( `${ value }` ) ; export const sameArrays = ( source , array ) : boolean => source . length === array . length && xor ( source , array ) . length === 0 ; export const asNumber = ( maybeNumber ) : number => parseInt ( `${ maybeNumber }` , 10 ) ;