find() public static method

Finds a value in the given data.
public static find ( array $data, callable $cb, mixed $default = null ) : mixed
$data array Data.
$cb callable Function to find value.
$default mixed Default value.
return mixed Value.
 /**
  *
  */
 public function testFindDefault()
 {
     $this->assertEquals('default', Traverse::find([], function () {
     }, 'default'));
 }