import { memoizeJ } from "@thi.ng/memoize/memoizej" ; import type { Stringer } from "./api.js" ; export const int = ( x ) => String ( Math . trunc ( x ) ) ; export const intLocale = memoizeJ ( ( locale ) => ( x ) => Math . trunc ( x ) . toLocaleString ( locale ) ) ;