34-find-first-and-last-position-of-element-in-sorted-array

DevGod needs to write a blog entry for this problem!
/**
 * @param {number[]} nums
 * @param {number} target
 * @return {number[]}
 */
var searchRange = function(nums, target) {
    return [ nums.indexOf(target), nums.lastIndexOf(target)];
};