@bentoboxes/nova-utils
Version:
This set of utilities are intended to
21 lines (15 loc) • 389 B
JavaScript
import _ from "lodash";
/** Class with static method for lodash */
class LodashUtilsSingleton {
/**
* Constructor restricted to this class itself
*/
constructor() {
if (!LodashUtilsSingleton.instance) {
LodashUtilsSingleton.instance = _;
}
return LodashUtilsSingleton.instance;
}
}
const LodashUtils = new LodashUtilsSingleton();
export { LodashUtils };