is there an easy way to find a most similar keyword out of an array using javascript? : javascript, find a reslut most like with search text in array

example 

    var testData = [
      '101',
      '102C',
      '103B',
      'A',
      'BD',
      'AB',
      'A102B',
      'A1',
    ];
    //if search Text is 102
    var searchText = "102";
    // result should be 102C
    
    //if search Text is 102B
    var searchText = "102B";
    // result should be A102B, 102C
    
    //if search Text is A
    var searchText = "A";
    // result should be A, A1, AB, A102


is there an easy way to find a most like keyword out of an array using javascript?

Thank you.
