@stamp/is

1.0.0 • Public • Published

@stamp/is

Various checking functions used with stamps

import {isStamp, isDescriptor, isComposable} from '@stamp/is';
// or
const {isStamp, isDescriptor, isComposable} = require('@stamp/is');

isStamp(arg)

@stamp/is/stamp

Checks if passed argument is a function and has a .compose() property.

isDescriptor(arg)

@stamp/is/descriptor

Checks if passed argument is considered a descriptor.

isComposable(arg)

@stamp/is/composable

Checks if passed argument is considered as composable (aka stamp or descriptor).

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1,526
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1,526
  • 0.2.0
    0
  • 0.1.2
    1
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i @stamp/is

Weekly Downloads

1,527

Version

1.0.0

License

MIT

Last publish

Collaborators

  • fredyc
  • koresar
  • stamp