Skip to content

Latest commit

 

History

History

function

Function


MIT License

Function extensions

Table of contents

Usage

import {
  isAsyncFunction,
  isAsyncGeneratorFunction,
  isFunction,
  isGeneratorFunction,
} from 'jsmodern/dist/function.js';
import { extend } from 'jsmodern';

extend({
  function: [
    isAsyncFunction,
    isAsyncGeneratorFunction,
    isFunction,
    isGeneratorFunction,
  ],
});

console.log([
  Function.isAsyncFunction,
  Function.isAsyncGeneratorFunction,
  Function.isFunction,
  Function.isGeneratorFunction,
].every(n => 'function' === typeof(n)));

Available extensions

Check out API Reference.

License

MIT License © Rong Sen Ng