UNPKG

@duetds/date-picker

Version:

Duet Date Picker is an open source version of Duet Design System’s accessible date picker.

24 lines (16 loc) 345 B
'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; };