tahamajs's picture
download
raw
311 Bytes
import keys from './keys.js';
// Invert the keys and values of an object. The values must be serializable.
export default function invert(obj) {
var result = {};
var _keys = keys(obj);
for (var i = 0, length = _keys.length; i < length; i++) {
result[obj[_keys[i]]] = _keys[i];
}
return result;
}

Xet Storage Details

Size:
311 Bytes
·
Xet hash:
30663a0c88799a75393b5d0e8dd0bcea4125794102d6e8e256a3c13066157845

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.