Merge branch 'master' into add-is-gen

This commit is contained in:
Kunall Banerjee 2017-09-24 16:01:36 -04:00
commit bd72dbd1e5
3 changed files with 19 additions and 1 deletions

12
test.js
View file

@ -287,6 +287,18 @@ test('is.iterable', t => {
t.false(m.iterable({}));
});
test('is.class', t => {
class Foo {}
const classDeclarations = [
Foo,
class Bar extends Foo {}
];
for (const x of classDeclarations) {
t.true(m.class(x));
}
});
test('is.typedArray', t => {
const typedArrays = [
new Int8Array(),