You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
356 B
JavaScript

3 years ago
"use strict";
const { validateArguments } = require("@validatem/core");
const required = require("@validatem/required");
const fromLazyValue = require("@promistream/from-lazy-value");
3 years ago
module.exports = function createStreamFromValue(_value) {
let [ value ] = validateArguments(arguments, {
value: required
});
return fromLazyValue(() => value);
3 years ago
};