Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/node_modules.8/@smithy/protocol-http/dist-es/
Upload File :
Current File : /home/infinitibizsol/.trash/node_modules.8/@smithy/protocol-http/dist-es/Fields.js

export class Fields {
    constructor({ fields = [], encoding = "utf-8" }) {
        this.entries = {};
        fields.forEach(this.setField.bind(this));
        this.encoding = encoding;
    }
    setField(field) {
        this.entries[field.name.toLowerCase()] = field;
    }
    getField(name) {
        return this.entries[name.toLowerCase()];
    }
    removeField(name) {
        delete this.entries[name.toLowerCase()];
    }
    getByType(kind) {
        return Object.values(this.entries).filter((field) => field.kind === kind);
    }
}

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