MCPcopy Create free account
hub / github.com/OptimalBits/node_acl / decodeAll

Function decodeAll

lib/mongodb-backend.js:222–232  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

220}
221
222function decodeAll(arr) {
223 if (Array.isArray(arr)) {
224 var ret = [];
225 arr.forEach(function(aval) {
226 ret.push(decodeText(aval));
227 });
228 return ret;
229 } else {
230 return arr;
231 }
232}
233
234function fixKeys(doc) {
235 if (doc) {

Callers

nothing calls this directly

Calls 1

decodeTextFunction · 0.85

Tested by

no test coverage detected