Search
 
SCRIPT & CODE EXAMPLE
 

TYPESCRIPT

inteface method extension angular

interface ArrayConstructor {
    sortAlphaNumeric: (data: Array<any>) => Array<any>;
};

Array.sortAlphaNumeric = function (data): Array<any> {
    return data.sort((a, b) => {
        return a.AreaName.toLowerCase().localeCompare(b.AreaName.toLowerCase(), undefined, {
            numeric: true,
            sensitivity: 'base'
        });
    });
}
Comment

PREVIOUS NEXT
Code Example
Typescript :: install material ui typescript 
Typescript :: what are the benefits of linux 
Typescript :: The softness of a spot lights edge is controlled by penumbra angle, value gives perfect hard edge: 
Typescript :: not equal in racket 
Typescript :: spade operator typescript 
Typescript :: ts in r 
Typescript :: how to capitalize the first word of a sentence in ionic 
Typescript :: acces arrey lements without comma 
Typescript :: ht office 
Typescript :: its getting abort when im trying to open the webcame using opencv 
Typescript :: global hotkeys typescript react 
Typescript :: loadsh partial match filter 
Typescript :: for loop of unlimited inputs python 
Typescript :: jest aliases typescript storybook 
Typescript :: mat-autocomplete options dropdown does not stick when scrolling 
Typescript :: how to convert js to ts 
Typescript :: rac bar charts plotly 
Typescript :: how to css after elements for background overlays 
Typescript :: typescript reset class properties to default 
Typescript :: Count pets the types of pets in a columns 
Typescript :: number validation in typescript 
Typescript :: rspec run all tests in a directory 
Typescript :: generic function typescript 
Typescript :: python search all txts in a folder 
Typescript :: body massage centers in kochi 
Cpp :: dart and or 
Cpp :: c++ hide console 
Cpp :: c++ how to loop through a vector but not the last element 
Cpp :: UNIX c++ delay 
Cpp :: c++ vector pop first element 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =