import { createErrorReporter } from "./error-reporter" ; param { object } primative return { function } export const createPrim = ctx => function prim ( primative ) { if ( primative . name === "Array" ) { return function isArray ( a , msg ? ) { return createErrorReporter ( "prim" , ctx , msg , [ a , primative . name ] ) ( ( ) => { return Array . isArray ( a ) ; } ) ; } ; } return function isPrimative ( a , msg ? ) { return createErrorReporter ( "prim" , ctx , msg , [ a , primative . name ] ) ( ( ) => { return typeof a === primative . name . toLowerCase ( ) ; } ) ; } ; } ;