'SQL checksum equivalent function in Angular 8

Is there a function to create a unique identifier for each value in an array in Angular8 which is equivalent to checksum function in SQL.

select checksum('aaa')
select checksum('123')

I want something like this in Angular 8.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source