%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/opti/workflow/node_modules/@hapi/hoek/lib/
Upload File :
Create Path :
Current File : /home/opti/workflow/node_modules/@hapi/hoek/lib/once.js

'use strict';

const internals = {};


module.exports = function (method) {

    if (method._hoekOnce) {
        return method;
    }

    let once = false;
    const wrapped = function (...args) {

        if (!once) {
            once = true;
            method(...args);
        }
    };

    wrapped._hoekOnce = true;
    return wrapped;
};

Zerion Mini Shell 1.0