export function contains ( target , container ) { if ( container instanceof Set || container instanceof Map ) { return container . has ( target ) ; } else { return container . indexOf ( target ) > - 1 ; } }