once.js 236 B

123456
  1. import partial from './partial.js';
  2. import before from './before.js';
  3. // Returns a function that will be executed at most one time, no matter how
  4. // often you call it. Useful for lazy initialization.
  5. export default partial(before, 2);