import { createErrorReporter } from "./error-reporter" ; param { function | * } value return { function } export const createVal = ctx => function val ( value ) { return typeof value === "function" ? value : function isVal ( a , msg ? ) { return createErrorReporter ( "val" , ctx , msg , [ a , value ] ) ( ( ) => { return a === value ; } ) ; } ; } ;