You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 13, 2026. It is now read-only.
This function allows for making a Javascript object thinner by deleting some of its properties. Useful in some scenarios to improve performance when dealing with large objects, and prevent VMs of running out of memory.
varslenderize=function(v,kd,arg){// we obviously assume it's a JSON documentv=Riak.mapValuesJson(v)[0];// arg must be an Arrayif(arginstanceofArray){arg.forEach(function(prop){deletev[prop];});}else{thrownewError("The provided argument must be an Array");}return[v];}