{"json_modified": "2016-09-17T18:29:33.731743", "uuid": "fc173c27-7b8d-41fb-8982-f585ee8b34a1", "title": "Promise.resolve()", "url": "/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/resolve", "tags": ["Promise", "ECMAScript6", "Method", "JavaScript"], "translations": [{"uuid": "56e315ec-f3f0-41f6-8c09-294df7332e8a", "title": "Promise.resolve()", "url": "/fr/docs/Web/JavaScript/Reference/Objets_globaux/Promise/resolve", "tags": ["R\u00e9f\u00e9rence", "ECMAScript6", "M\u00e9thode", "Promise", "JavaScript"], "summary": "Une promesse (Promise
qui est r\u00e9solue avec la valeur indiqu\u00e9e en argument.", "localization_tags": [], "locale": "fr", "last_edit": "2016-08-18T09:48:46", "review_tags": []}, {"uuid": "cc91711a-04c9-4b86-944b-5c8d3a6bcc60", "title": "Promise.resolve()", "url": "/id/docs/Web/JavaScript/Reference/Global_Objects/Promise/resolve", "tags": ["Promise", "ECMAScript6", "Method", "JavaScript"], "summary": "Method\u00a0Promise.resolve(value)
\u00a0mengembalikan objek Promise.then
yang diselesaikan dengan nilai yang diberikan. jika nilainya thenable\u00a0(mis. memiliki \"then\" method
), promise yang dikembalikan akan \"mengikuti\"\u00a0thenable-nya, menggunakan keadaan ini; sebaliknya promise akan dikembalikan sesuai nilai yang terpenuhi.", "localization_tags": [], "locale": "id", "last_edit": "2016-05-29T18:22:15", "review_tags": []}, {"uuid": "c3d43ab5-5349-4213-8e79-ed355a6dee59", "title": "Promise.resolve()", "url": "/ja/docs/Web/JavaScript/Reference/Global_Objects/Promise/resolve", "tags": ["Experimental", "Exp\u00e9rimental", "JavaScript", "Promise", "ECMAScript6", "Method"], "summary": "\u5f15\u6570\u3067\u4e0e\u3048\u3089\u308c\u305f\u5024\u3067\u5b8c\u4e86\u3055\u308c\u305fPromise
\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8fd4\u3057\u307e\u3059\u3002\u5024\u304c\u6210\u529f\u306a\u3089 (\u3059\u306a\u308f\u3061then
\u30e1\u30bd\u30c3\u30c9\u3092\u6301\u3063\u3066\u3044\u308b)\u3001\u8fd4\u3055\u308c\u308b\u30d7\u30ed\u30df\u30b9\u306f\u6210\u529f\u306b\u5f93\u3044\u3001\u305d\u306e\u6700\u7d42\u7684\u306a\u72b6\u614b\u3092\u63a1\u7528\u3057\u307e\u3059\u3002\u3055\u3082\u306a\u3051\u308c\u3070\u3001\u8fd4\u3055\u308c\u308b\u30d7\u30ed\u30df\u30b9\u306f\u305d\u306e\u5024\u3067\u5931\u6557\u306b\u3055\u308c\u307e\u3059\u3002", "localization_tags": ["inprogress"], "locale": "ja", "last_edit": "2015-06-21T08:38:56", "review_tags": ["editorial"]}, {"uuid": "2639dd1b-6b4b-4f14-b68f-83cbf0f0638a", "title": "Promise.resolve()", "url": "/ko/docs/Web/JavaScript/Reference/Global_Objects/Promise/resolve", "tags": ["Promise", "ECMAScript6", "Method", "JavaScript"], "summary": "Promise.resolve(value)
\uba54\uc11c\ub4dc\ub294 \uc8fc\uc5b4\uc9c4 \uac12\uc73c\ub85c \uacb0\uc815(resolve)\ub418\ub294 Promise.then
\uac1d\uccb4\ub97c \ubc18\ud658\ud569\ub2c8\ub2e4. \uadf8 \uac12\uc774 thenable(\uc989 \"then\" \uba54\uc11c\ub4dc
\uac00 \uc788\uc74c)\uc778 \uacbd\uc6b0, \ubc18\ud658\ub41c \ud504\ub85c\ubbf8\uc2a4\ub294 \uadf8 thenable\uc744 \"\ub530\ub974\uba70\", \uadf8 \ucd5c\uc885 \uc0c1\ud0dc\ub97c \ucde8\ud569\ub2c8\ub2e4; \uadf8\ub807\uc9c0 \uc54a\uc73c\uba74 \ubc18\ud658\ub41c \ud504\ub85c\ubbf8\uc2a4\ub294 \uadf8 \uac12\uc73c\ub85c \uc774\ud589(fulfill)\ub429\ub2c8\ub2e4.", "localization_tags": [], "locale": "ko", "last_edit": "2016-06-24T04:47:40", "review_tags": []}, {"uuid": "2a96bba2-7db3-44c4-927c-82663340d738", "title": "Promise.resolve()", "url": "/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Promise/resolve", "tags": ["Promise", "ECMAScript6", "ES6", "M\u00e9todo", "JavaScript"], "summary": "O m\u00e9todo\u00a0Promise.resolve(value)
\u00a0retorna um objeto\u00a0Promise
que \u00e9 resolvido com o valor passado. Se o valor for \u00a0thenable (ex: tiver um m\u00e9todo\u00a0\"then\"
), a promise retornada ir\u00e1\u00a0\"seguir\" esse\u00a0thenable, adotando seu eventual estado; Do contr\u00e1rio a promise retornada ser\u00e1 realizada com o valor.", "localization_tags": ["inprogress"], "locale": "pt-BR", "last_edit": "2016-09-17T18:29:27", "review_tags": []}, {"uuid": "f12e6994-d7b2-45da-aee7-e859f5a493f8", "title": "Promise.resolve()", "url": "/ru/docs/Web/JavaScript/Reference/Global_Objects/Promise/resolve", "tags": ["\u041e\u0431\u0435\u0449\u0430\u043d\u0438\u0435", "ECMAScript6", "\u043c\u0435\u0442\u043e\u0434", "\u041c\u0435\u0442\u043e\u0434", "JavaScript"], "summary": "\u041c\u0435\u0442\u043e\u0434\u00a0Promise.resolve(value)
\u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u0431\u044a\u0435\u043a\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043e\u0433\u043e\u00a0Promise
\u0441 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c. \u0415\u0441\u043b\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f thenable - \u043e\u0431\u044c\u0435\u043a\u0442\u00a0(\u0442.\u0435. \u0438\u043c\u0435\u0435\u0442 \u043c\u0435\u0442\u043e\u0434\u00a0\"then\" method
), \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u043e\u0435 \u043e\u0431\u0435\u0449\u0430\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c thenable - \u043e\u0431\u044c\u0435\u043a\u0442\u0443, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044f \u0441\u0432\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435; \u0432 \u0438\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u043e\u0435 \u043e\u0431\u0435\u0449\u0430\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043e \u0441 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c.", "localization_tags": ["inprogress"], "locale": "ru", "last_edit": "2016-08-26T04:58:06", "review_tags": ["editorial"]}, {"uuid": "7c8f010a-c711-4bb5-a10e-3600884fade7", "title": "Promise.resolve()", "url": "/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise/resolve", "tags": [], "summary": "Promise.resolve(value)\u65b9\u6cd5
\u8fd4\u56de\u4e00\u4e2a\u4ee5\u7ed9\u5b9a\u503c\u89e3\u6790\u540e\u7684Promise\u5bf9\u8c61\u3002\u4f46\u5982\u679c\u8fd9\u4e2a\u503c\u662f\u4e2athenable\uff08\u5373\u5e26\u6709then\u65b9\u6cd5\uff09\uff0c\u8fd4\u56de\u7684promise\u4f1a\u201c\u8ddf\u968f\u201d\u8fd9\u4e2athenable\u7684\u5bf9\u8c61\uff0c\u91c7\u7528\u5b83\u7684\u6700\u7ec8\u72b6\u6001\uff08\u6307resolved/rejected/pending/settled\uff09\uff1b\u5426\u5219\u4ee5\u8be5\u503c\u4e3a\u6210\u529f\u72b6\u6001\u8fd4\u56depromise\u5bf9\u8c61\u3002", "localization_tags": [], "locale": "zh-CN", "last_edit": "2016-03-17T23:14:28", "review_tags": []}], "modified": "2016-08-17T14:37:10", "label": "Promise.resolve()", "localization_tags": [], "locale": "en-US", "id": 127429, "last_edit": "2016-08-17T14:37:05", "summary": "The Promise.resolve(value)
method returns a Promise
object that is resolved with the given value. If the value is a thenable (i.e. has a \"then\" method
), the returned promise will \"follow\" that thenable, adopting its eventual state; otherwise the returned promise will be fulfilled with the value.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Syntax", "title": "Syntax"}, {"id": "Parameters", "title": "Parameters"}, {"id": "Return_value", "title": "Return value"}, {"id": "Description", "title": "Description"}, {"id": "Examples", "title": "Examples"}, {"id": "Using_the_static_Promise.resolve_method", "title": "Using the static "}, {"id": "Resolving_an_array", "title": "Resolving an array"}, {"id": "Resolving_another_Promise", "title": "Resolving another "}, {"id": "Resolving_thenables_and_throwing_Errors", "title": "Resolving thenables and throwing Errors"}, {"id": "Specifications", "title": "Specifications"}, {"id": "Browser_compatibility", "title": "Browser compatibility"}, {"id": "See_also", "title": "See also"}], "slug": "Web/JavaScript/Reference/Global_Objects/Promise/resolve", "review_tags": []}