dot-object icon indicating copy to clipboard operation
dot-object copied to clipboard

Generic `keep` option

Open idmadj opened this issue 3 years ago • 0 comments

It would be helpful to provide a keep option that behaves like keepArray, but in a more generic way:

const dot = new DotObject();
dot.keep = value => {
  return !(typeof value === 'string');
};

I can open a PR, let me know!

idmadj avatar Oct 22 '21 03:10 idmadj