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

DevGod
Vtuber
/** * @param {number[]} nums * @param {number} target * @return {number[]} */var searchRange = function(nums, target) { return [ nums.indexOf(target), nums.lastIndexOf(target)];};