functionfoundry
Version:
Pure function JavaScript library
13 lines (11 loc) • 308 B
JavaScript
import test from 'tape';
import ref from '../src/ref';
import isref from '../src/isref';
test('isref', function(t) {
t.plan(5)
t.equal( isref( ref(0, 1) ), true );
t.equal( isref( ref(1) ), true );
t.equal( isref( [] ), false );
t.equal( isref( '' ), false );
t.equal( isref( {} ), false );
});