6 lines
108 B
JavaScript
6 lines
108 B
JavaScript
|
export default function(x) {
|
||
|
if (Math.abs(x) > 1) {
|
||
|
x = (x > 1) ? 1 : -1;
|
||
|
}
|
||
|
return Math.asin(x);
|
||
|
}
|