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

Function encodeAll

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

Source from the content-addressed store, hash-verified

208}
209
210function encodeAll(arr) {
211 if (Array.isArray(arr)) {
212 var ret = [];
213 arr.forEach(function(aval) {
214 ret.push(encodeText(aval));
215 });
216 return ret;
217 } else {
218 return arr;
219 }
220}
221
222function decodeAll(arr) {
223 if (Array.isArray(arr)) {

Callers 2

mongodb-backend.jsFile · 0.85
makeArrayFunction · 0.85

Calls 1

encodeTextFunction · 0.85

Tested by

no test coverage detected