Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/node_modules.5/joi/lib/types/
Upload File :
Current File : /home/infinitibizsol/.trash/node_modules.5/joi/lib/types/object.js

'use strict';

const Keys = require('./keys');


const internals = {};


module.exports = Keys.extend({

    type: 'object',

    cast: {
        map: {
            from: (value) => value && typeof value === 'object',
            to(value, helpers) {

                return new Map(Object.entries(value));
            }
        }
    }
});

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists