import { flatten } from "reakit-utils/flatten" ; example export function warning ( condition , ... messages ) { if ( process . env . NODE_ENV !== "production" ) { if ( ! condition ) return ; const warns = flatten ( messages . map ( ( message ) => [ message , "\n" ] ) ) ; console . warn ( ... warns . slice ( 0 , - 1 ) ) ; try { throw Error ( warns . join ( "" ) ) ; } catch ( x ) { } } }