function array_some(array $set, Closure $callback) { return Hash::some($set, $callback); }
/** * Test that some() returns true if one value matches the callback condition. */ public function testSome() { $this->assertTrue(Hash::some(array(123, 'abc', true, null), function ($value, $key) { return is_string($value); })); $this->assertFalse(Hash::some(array(123, true, null), function ($value, $key) { return is_string($value); })); }