Sha256: e3b084459109014d1a75359d6799a175d5b28017c38b27edca320249c802feb1

Contents?: true

Size: 210 Bytes

Versions: 19

Compression:

Stored size: 210 Bytes

Contents

export default function isFunction(input) {
    return (
        (typeof Function !== 'undefined' && input instanceof Function) ||
        Object.prototype.toString.call(input) === '[object Function]'
    );
}

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
card-mod-date-0.15.6 vendor/moment/src/lib/utils/is-function.js
card-mod-date-0.15.0 vendor/moment/src/lib/utils/is-function.js
card-mod-date-0.14.2 vendor/moment/src/lib/utils/is-function.js
card-mod-date-0.14.1 vendor/moment/src/lib/utils/is-function.js
card-mod-date-0.14.0 vendor/moment/src/lib/utils/is-function.js
card-mod-date-0.13.4 vendor/moment/src/lib/utils/is-function.js
card-mod-date-0.13.3 vendor/moment/src/lib/utils/is-function.js
card-mod-date-0.13.2 vendor/moment/src/lib/utils/is-function.js
card-mod-date-0.13.1 vendor/moment/src/lib/utils/is-function.js
card-mod-date-0.13.0 vendor/moment/src/lib/utils/is-function.js
card-mod-date-0.11.7 vendor/moment/src/lib/utils/is-function.js
card-mod-date-0.12.0 vendor/moment/src/lib/utils/is-function.js
card-mod-date-0.11.6 vendor/moment/src/lib/utils/is-function.js
card-mod-date-0.11.5 vendor/moment/src/lib/utils/is-function.js
card-mod-date-0.11.4 vendor/moment/src/lib/utils/is-function.js
card-mod-date-0.11.3 vendor/moment/src/lib/utils/is-function.js
card-mod-date-0.11.2 vendor/moment/src/lib/utils/is-function.js
card-mod-date-0.11.1 vendor/moment/src/lib/utils/is-function.js
card-mod-date-0.11.0 vendor/moment/src/lib/utils/is-function.js