UNPKG

mingo

Version:

MongoDB query language for in-memory objects

10 lines (9 loc) 225 B
import { computeValue } from "../../../core/_internal"; const $strLenBytes = (obj, expr, options) => { return ~-encodeURI(computeValue(obj, expr, null, options)).split( /%..|./ ).length; }; export { $strLenBytes };