import { peek } from "@thi.ng/arrays/peek" ; import { isNumber } from "@thi.ng/checks/is-number" ; import { isPlainObject } from "@thi.ng/checks/is-plain-object" ; param args internal export const __argAttribs = ( args ) => isPlainObject ( peek ( args ) ) ? args . pop ( ) : undefined ; param args internal export const __argsVV = ( args ) => { const attr = __argAttribs ( args ) ; return args . length ? args . length === 2 ? [ args [ 0 ] , args [ 1 ] , attr ] : [ undefined , args [ 0 ] , attr ] : [ undefined , undefined , attr ] ; } ; param args internal export const __argsVN = ( args ) => { const attr = __argAttribs ( args ) ; return args . length ? args . length === 2 ? [ args [ 0 ] , args [ 1 ] , attr ] : isNumber ( args [ 0 ] ) ? [ undefined , args [ 0 ] , attr ] : [ args [ 0 ] , undefined , attr ] : [ undefined , undefined , attr ] ; } ;