preguntar acerca de pure-function

9
réponses

Est une fonction qui appelle les mathématiques.random() pur?

est-ce une fonction pure? function test(min,max) { return Math.random() * (max - min) + min; } ma compréhension est qu'une fonction pure suit ces conditions: il renvoie une valeur calculée à partir des paramètres …
demandé sur 1970-01-01 00:33:37