UNPKG

cake-hash

Version:

CakePHP in Utility.Hash class like a collection manipulation. In JavaScript.

12 lines (9 loc) 257 B
import * as Core from "./utils/core" import extract from "./extract" export default function check(data, path) { const results = extract(data, path); if (Core.isCollection(results)) { return !Core.empty(results); } return results != null; }