@stamp/is
v1.0.0
Published
Various checking functions used with stamps
Downloads
4,998
Readme
@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).