UNPKG

@cran/vue.core

Version:

Cranberry Vue Core Utilities

13 lines (12 loc) 387 B
function _hasCallback(hook, otherArgCount) { return otherArgCount < hook.length; } export function hasCallback(hook, otherArgCount = 1) { return hook ? Array.isArray(hook) ? hook.some(function testHasCallback(value) { return _hasCallback(value, otherArgCount); }) : _hasCallback(hook, otherArgCount) : false; }