import { ObjPred } from '../typings/types'; interface AllObject { (fn: ObjPred, obj: Record): boolean; (fn: ObjPred): (obj: Record) => boolean; } /** * Tests whether every [key, value] pair in the object passes the test implemented by the provided function. * * @param {Function} fn The function to test for each [key, value] pair. Takes a predicate and an object. * @param {Object} obj The object whose enumerable own property [key, value] pairs are to be tested. * @return {Boolean} Returns `true` if the callback function returns a truthy value for every [key, value] pair, otherwise, false. * @example * * var isBiggerThanZero = x => x > 0; * * all(isBiggerThanZero, {}); //=> true * all(isBiggerThanZero, { a: 1 }); //=> true * all(isBiggerThanZero, { a: 1, b: 1, c: 1 }); //=> true * all(isBiggerThanZero, { a: 0, b: 1, c: 0 }); //=> false * all(isBiggerThanZero, { a: 1, b: 0, c: 1 }); //=> false * all(isBiggerThanZero)({ a: 0, b: 0, c: 0 }); //=> false * all(isBiggerThanZero)({ a: 1, b: 0, c: 1 }); //=> false */ declare const _default: AllObject; export default _default;