UNPKG

functionfoundry

Version:
13 lines (11 loc) 308 B
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 ); });