Deprecate utility tag

This commit is contained in:
Angelos Chalaris
2020-04-16 23:07:33 +03:00
parent 5e42f0aaa4
commit e31aea403d
60 changed files with 118 additions and 117 deletions

View File

@ -1,6 +1,6 @@
---
title: nthArg
tags: utility,function,beginner
tags: function,beginner
---
Creates a function that gets the argument at index `n`. If `n` is negative, the nth argument from the end is returned.
@ -17,4 +17,4 @@ third(1, 2, 3); // 3
third(1, 2); // undefined
const last = nthArg(-1);
last(1, 2, 3, 4, 5); // 5
```
```