1.0.0 • Published 7 years ago

@stamp/is v1.0.0

Weekly downloads
2,711
License
MIT
Repository
github
Last release
7 years ago

@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).