mirror of https://github.com/lukechilds/docs.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5 lines
277 B
5 lines
277 B
'use strict';
|
|
|
|
exports.isListr = obj => Boolean(obj && obj.setRenderer && obj.add && obj.run);
|
|
// https://github.com/sindresorhus/is-observable/issues/1
|
|
exports.isObservable = obj => Boolean(obj && typeof obj.subscribe === 'function' && obj.constructor.name === 'Observable');
|
|
|