Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Codewars Find the smallest integer in the array

class SmallestIntegerFinder {
    findSmallestInt(args) {
        let first = args.sort((a, b) => a - b);
        return first[0]
    }
}
 
PREVIOUS NEXT
Tagged: #Codewars #Find #smallest #integer #array
ADD COMMENT
Topic
Name
4+8 =