Homec4science

add the method to access the last item in an array without chocking

Authored by Jason Ge <jungejason@fb.com> on Jan 8 2012, 10:27.

Description

add the method to access the last item in an array without chocking

Summary: Add method last() which is very similar to head()

Test Plan:

  • this has been used in Facebook code like head().
  • used it in D1344

Reviewers: epriestley, nh

Reviewed By: epriestley

CC: aran, epriestley

Differential Revision: https://secure.phabricator.com/D1343

Details

Committed
Jason Ge <jungejason@fb.com>Jan 8 2012, 20:59
Pushed
aubortMar 17 2017, 12:03
Parents
rPHU501992bb8865: Allow Remarkup headers to generate a TOC
Branches
Unknown
Tags
Unknown

Event Timeline

Jason Ge <jungejason@fb.com> committed rPHU6f71996c8511: add the method to access the last item in an array without chocking (authored by Jason Ge <jungejason@fb.com>).Jan 8 2012, 20:59