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