@stamp/is

Various checking functions used with stamps

Usage no npm install needed!

<script type="module">
  import stampIs from 'https://cdn.skypack.dev/@stamp/is';
</script>

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