UNPKG

mingo

Version:

MongoDB query language for in-memory objects

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