Socket
Book a DemoInstallSign in
Socket

last-js-kata

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

last-js-kata

Javascript kata to find the last element of a list

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

JAVASCRIPT KATA : Last !

Description:

Find the last element of a list.

Example:

last( [1,2,3,4] ) // => 4
last( "xyz" )     // => z
last( 1,2,3,4 )   // => 4

In javascript and CoffeeScript a list will be an array, a string or the list of arguments.

Solution : last.js

Source : codewars

Keywords

JavaScript

FAQs

Package last updated on 30 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts