{"json_modified": "2016-01-30T09:59:04.009824", "slug": "Web/JavaScript/Reference/Objets_globaux/Atomics/sub", "tags": ["M\u00e9moire partag\u00e9e", "M\u00e9thode", "Atomics", "Exp\u00e9rimental", "JavaScript"], "locale": "fr", "title": "Atomics.sub()", "translations": [{"title": "Atomics.sub()", "url": "/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/sub", "tags": ["Shared Memory", "Experimental", "Atomics", "Method", "JavaScript"], "summary": "The static Atomics
.sub()
method substracts a given value at a given position in the array and returns the old value at that position. This atomic operation guarantees that no other write happens until the modified value is written back.", "localization_tags": [], "locale": "en-US", "last_edit": "2016-01-28T11:36:51", "review_tags": []}], "modified": "2016-01-30T09:59:04", "label": "Atomics.sub()", "localization_tags": [], "url": "/fr/docs/Web/JavaScript/Reference/Objets_globaux/Atomics/sub", "last_edit": "2016-01-30T09:50:16", "summary": "La m\u00e9thode statique Atomics
.sub()
permet de soustraire une valeur donn\u00e9e \u00e0 une position donn\u00e9e du tableau partag\u00e9. Elle renvoie l'ancienne valeur qui \u00e9tait contenue dans le tableau avant l'op\u00e9ration. Cette op\u00e9ration atomique garantit qu'aucune autre op\u00e9ration d'\u00e9criture n'est appliqu\u00e9e tant que la valeur modifi\u00e9e n'est pas \u00e9crite.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Syntaxe", "title": "Syntaxe"}, {"id": "Param\u00e8tres", "title": "Param\u00e8tres"}, {"id": "Valeur_de_retour", "title": "Valeur de retour"}, {"id": "Exceptions_lev\u00e9es", "title": "Exceptions lev\u00e9es"}, {"id": "Exemples", "title": "Exemples"}, {"id": "Sp\u00e9cifications", "title": "Sp\u00e9cifications"}, {"id": "Compatibilit\u00e9_des_navigateurs", "title": "Compatibilit\u00e9 des navigateurs"}, {"id": "Voir_aussi", "title": "Voir aussi"}], "id": 173637, "review_tags": []}