From a673f2c4c96a2ac6a378b64e9b2cdd4de3d2fdf8 Mon Sep 17 00:00:00 2001 From: Rohit Tanwar Date: Sun, 31 Dec 2017 20:15:36 +0530 Subject: [PATCH] fixed typo --- snippets/sortedIndex.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/snippets/sortedIndex.md b/snippets/sortedIndex.md index 1e65ee014..ba9a7599c 100644 --- a/snippets/sortedIndex.md +++ b/snippets/sortedIndex.md @@ -1,8 +1,6 @@ -### isValidJSON - -Checks if the provided argument is an valid JSON. - +### sortedIndex +Returns the lowest index at which value should be inserted into array in order to maintain its sort order ```js const sortedIndex = (arr,n) => { @@ -15,5 +13,6 @@ const sortedIndex = (arr,n) => { ``` ```js - +sortedIndex([5,3,2,1], 4); // 1 +sortedIndex([30,50],40); // 1 ```