Delete never-completed map-tree package
parent
da472314dc
commit
c3af4706b8
@ -1,18 +0,0 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
// FIXME: Finish this later
|
|
||||||
|
|
||||||
const { validateArguments } = require("@validatem/core");
|
|
||||||
const isString = require("@validatem/is-string");
|
|
||||||
const isFunction = require("@validatem/is-function");
|
|
||||||
const required = require("@validatem/required");
|
|
||||||
|
|
||||||
module.exports = function mapTree(tree, predicate, childrenProperty) {
|
|
||||||
validateArguments(arguments, {
|
|
||||||
tree: [ required ],
|
|
||||||
predicate: [ required, isFunction ],
|
|
||||||
childrenProperty: [ isString ]
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
Loading…
Reference in New Issue