{"id":8292,"date":"2022-06-11T14:57:32","date_gmt":"2022-06-11T14:57:32","guid":{"rendered":"https:\/\/phpcodez.com\/?p=8292"},"modified":"2022-06-11T14:57:48","modified_gmt":"2022-06-11T14:57:48","slug":"rest-parameter-javascript","status":"publish","type":"post","link":"http:\/\/phpcodez.com\/rest-parameter-javascript\/","title":{"rendered":"REST Parameter Javascript"},"content":{"rendered":"<p>REST parameter was introduced in the ES6 version of javascript.<\/p>\n<p>Rest parameter ( \u2026 )<\/p>\n<p>It provides an improved way of handling parameters of a function.<\/p>\n<p>Using the rest parameter syntax, we can create functions that can take a variable number of arguments.<\/p>\n<p>Any number of arguments will be converted into an array using the rest parameter.<\/p>\n<p>It also helps in extracting all or some parts of the arguments.<\/p>\n<p>Rest parameter can be used by applying three dots (&#8230;) before the parameters.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>REST parameter was introduced in the ES6 version of javascript. Rest parameter ( \u2026 ) It provides an improved way of handling parameters of a function. Using the rest parameter syntax, we can create functions that can take a variable number of arguments. Any number of arguments will be converted into an array using the &hellip; <a href=\"http:\/\/phpcodez.com\/rest-parameter-javascript\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">REST Parameter Javascript<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[213,260,370],"class_list":["post-8292","post","type-post","status-publish","format-standard","hentry","category-javascript","tag-functions","tag-javascript","tag-php"],"_links":{"self":[{"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/posts\/8292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/comments?post=8292"}],"version-history":[{"count":2,"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/posts\/8292\/revisions"}],"predecessor-version":[{"id":8294,"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/posts\/8292\/revisions\/8294"}],"wp:attachment":[{"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/media?parent=8292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/categories?post=8292"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/tags?post=8292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}