# whatsapp-web.js 1.2.1-post » Source: structures/Base.js

    'use strict';

    /**
     * Represents a WhatsApp data structure
     */
    class Base {
        constructor(client) {
            /**
             * The client that instantiated this
             * @readonly
             */
            Object.defineProperty(this, 'client', { value: client });
        }

        _clone() {
            return Object.assign(Object.create(this), this);
        }

        _patch(data) { return data; }
    }

    module.exports = Base;