Add Robot_JoyIt driver
This commit is contained in:
22
node_modules/stream-chain/defs.js
generated
vendored
Normal file
22
node_modules/stream-chain/defs.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
'use strict';
|
||||
|
||||
const none = Symbol.for('object-stream.none');
|
||||
const finalSymbol = Symbol.for('object-stream.final');
|
||||
const manySymbol = Symbol.for('object-stream.many');
|
||||
|
||||
const final = value => ({[finalSymbol]: value});
|
||||
const many = values => ({[manySymbol]: values});
|
||||
|
||||
const isFinal = o => o && typeof o == 'object' && finalSymbol in o;
|
||||
const isMany = o => o && typeof o == 'object' && manySymbol in o;
|
||||
|
||||
const getFinalValue = o => o[finalSymbol];
|
||||
const getManyValues = o => o[manySymbol];
|
||||
|
||||
module.exports.none = none;
|
||||
module.exports.final = final;
|
||||
module.exports.isFinal = isFinal;
|
||||
module.exports.getFinalValue = getFinalValue;
|
||||
module.exports.many = many;
|
||||
module.exports.isMany = isMany;
|
||||
module.exports.getManyValues = getManyValues;
|
||||
Reference in New Issue
Block a user