Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 316 Bytes

Fibonacci.md

File metadata and controls

17 lines (12 loc) · 316 Bytes

Fibonacci

  • v::fibonacci()

Validates whether the input follows the Fibonacci integer sequence.

v::fibonacci()->validate(1); // true
v::fibonacci()->validate('34'); // true
v::fibonacci()->validate(6); // false

See also: