import { createErrorReporter } from "./error-reporter" ; param { number } a param { number } b return { function } export const createBtw = ctx => function btw ( a , b ) { return function btwFn ( n , msg ? ) { return createErrorReporter ( "btw" , ctx , msg , [ n , a , b ] ) ( ( ) => { const [ min , max ] = a < b ? [ a , b ] : [ b , a ] ; return n > min && n < max ; } ) ; } ; } ;