{"id":3419,"date":"2016-03-15T23:27:32","date_gmt":"2016-03-15T23:27:32","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=3419"},"modified":"2016-03-15T23:27:32","modified_gmt":"2016-03-15T23:27:32","slug":"lodash-extend-can-skip-properties","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/lodash-extend-can-skip-properties\/","title":{"rendered":"Why lodash &#8220;extend&#8221; or &#8220;assignTo&#8221; can skip properties"},"content":{"rendered":"<p>If you look at the prototype for an object in the browser console, you will see some proprties rendered in a light purple:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"460\" height=\"250\" class=\"alignnone size-full wp-image-3422\" src=\"http:\/\/172.104.26.128\/wp-content\/uploads\/2016\/03\/img_56e8501706f49.png\" alt=\"\" srcset=\"https:\/\/www.garysieling.com\/blog\/wp-content\/uploads\/2016\/03\/img_56e8501706f49.png 460w, https:\/\/www.garysieling.com\/blog\/wp-content\/uploads\/2016\/03\/img_56e8501706f49-300x163.png 300w\" sizes=\"(max-width: 460px) 100vw, 460px\" \/><\/p>\n<p>If you run &#8220;_.extend&#8221; on an object that has these, they will also disappear, like so:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"583\" height=\"98\" class=\"alignnone size-full wp-image-3424\" src=\"http:\/\/172.104.26.128\/wp-content\/uploads\/2016\/03\/img_56e85028159fe.png\" alt=\"\" srcset=\"https:\/\/www.garysieling.com\/blog\/wp-content\/uploads\/2016\/03\/img_56e85028159fe.png 583w, https:\/\/www.garysieling.com\/blog\/wp-content\/uploads\/2016\/03\/img_56e85028159fe-300x50.png 300w\" sizes=\"(max-width: 583px) 100vw, 583px\" \/><\/p>\n<p>However, you definitely can reference them directly (this one gives me an error, but obviously it&#8217;s actually there):<br \/>\n<img loading=\"lazy\" decoding=\"async\" width=\"1904\" height=\"54\" class=\"alignnone size-full wp-image-3426\" src=\"http:\/\/172.104.26.128\/wp-content\/uploads\/2016\/03\/img_56e850b20e86b.png\" alt=\"\" srcset=\"https:\/\/www.garysieling.com\/blog\/wp-content\/uploads\/2016\/03\/img_56e850b20e86b.png 1904w, https:\/\/www.garysieling.com\/blog\/wp-content\/uploads\/2016\/03\/img_56e850b20e86b-300x9.png 300w, https:\/\/www.garysieling.com\/blog\/wp-content\/uploads\/2016\/03\/img_56e850b20e86b-1024x29.png 1024w, https:\/\/www.garysieling.com\/blog\/wp-content\/uploads\/2016\/03\/img_56e850b20e86b-768x22.png 768w, https:\/\/www.garysieling.com\/blog\/wp-content\/uploads\/2016\/03\/img_56e850b20e86b-1536x44.png 1536w, https:\/\/www.garysieling.com\/blog\/wp-content\/uploads\/2016\/03\/img_56e850b20e86b-1200x34.png 1200w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p>In the <a href=\"https:\/\/github.com\/lodash\/lodash\/blob\/ddf9354d26f55ac4e8402b71770aaeac8ac6f093\/dist\/lodash.core.js\">lodash source<\/a>, &#8220;extend&#8221; is also known as assignIn:<\/p>\n<pre lang=\"javascript\">  var assignIn = createAssigner(function(object, source) {\n    copyObject(source, keysIn(source), object);\n  });\n<\/pre>\n<p>You can call _.keysIn directly, and see that the interesting properties are not returned:<\/p>\n<pre lang=\"javascript\">_.keysIn(React.Component.prototype)\n[\"isReactComponent\", \"setState\", \"forceUpdate\"]\n<\/pre>\n<p>Suprisingly, &#8220;hasOwnProperty&#8221; returns true for one of the &#8216;missing&#8217; functions:<\/p>\n<pre lang=\"javascript\">React.Component.prototype.hasOwnProperty(\"isMounted\")\ntrue\n<\/pre>\n<p>However, lodash will detect that an object is a prototype object by looking for a constructor:<\/p>\n<pre lang=\"javascript\"> var Ctor = object.constructor,\n          index = -1,\n          isProto = typeof Ctor == 'function' &amp;&amp; Ctor.prototype === object,\n          result = Array(length),\n          skipIndexes = length &gt; 0;\n<\/pre>\n<p>If it is a prototype object, it then skips the constructor automatically.<\/p>\n<p>The other missing properties are of a special class, called <a href=\"http:\/\/zduck.com\/2013\/non-enumerable-properties-in-javascript\/\">non-enumerable properties<\/a>.<\/p>\n<p>Armed with this knowledge, you can look into the React source, and find they use this all over the place, which explains the root problem:<\/p>\n<pre lang=\"javascript\">Object.defineProperty(element._store, 'validated', {\n  configurable: false,\n  enumerable: false,\n  writable: true,\n  value: false\n});\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you look at the prototype for an object in the browser console, you will see some proprties rendered in a light purple: If you run &#8220;_.extend&#8221; on an object that has these, they will also disappear, like so: However, you definitely can reference them directly (this one gives me an error, but obviously it&#8217;s &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.garysieling.com\/blog\/lodash-extend-can-skip-properties\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Why lodash &#8220;extend&#8221; or &#8220;assignTo&#8221; can skip properties&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[4],"tags":[302,343,455],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"If you look at the prototype for an object in the browser console, you will see some proprties rendered in a light purple: If you run &quot;_.extend&quot; on an object that has these, they will also disappear, like so: However, you definitely can reference them directly (this one gives me an error, but obviously it&#039;s\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"gary\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.garysieling.com\/blog\/lodash-extend-can-skip-properties\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Gary Sieling - Software Engineer\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Why lodash \u201cextend\u201d or \u201cassignTo\u201d can skip properties - Gary Sieling\" \/>\n\t\t<meta property=\"og:description\" content=\"If you look at the prototype for an object in the browser console, you will see some proprties rendered in a light purple: If you run &quot;_.extend&quot; on an object that has these, they will also disappear, like so: However, you definitely can reference them directly (this one gives me an error, but obviously it&#039;s\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.garysieling.com\/blog\/lodash-extend-can-skip-properties\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2016-03-15T23:27:32+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2016-03-15T23:27:32+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Why lodash \u201cextend\u201d or \u201cassignTo\u201d can skip properties - Gary Sieling\" \/>\n\t\t<meta name=\"twitter:description\" content=\"If you look at the prototype for an object in the browser console, you will see some proprties rendered in a light purple: If you run &quot;_.extend&quot; on an object that has these, they will also disappear, like so: However, you definitely can reference them directly (this one gives me an error, but obviously it&#039;s\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/lodash-extend-can-skip-properties\\\/#blogposting\",\"name\":\"Why lodash \\u201cextend\\u201d or \\u201cassignTo\\u201d can skip properties - Gary Sieling\",\"headline\":\"Why lodash &#8220;extend&#8221; or &#8220;assignTo&#8221; can skip properties\",\"author\":{\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/author\\\/gary\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"http:\\\/\\\/172.104.26.128\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/img_56e8501706f49.png\",\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/lodash-extend-can-skip-properties\\\/#articleImage\"},\"datePublished\":\"2016-03-15T23:27:32+00:00\",\"dateModified\":\"2016-03-15T23:27:32+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/lodash-extend-can-skip-properties\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/lodash-extend-can-skip-properties\\\/#webpage\"},\"articleSection\":\"Code Examples, javascript, lodash, react\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/lodash-extend-can-skip-properties\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.garysieling.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/category\\\/code-examples\\\/#listItem\",\"name\":\"Code Examples\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/category\\\/code-examples\\\/#listItem\",\"position\":2,\"name\":\"Code Examples\",\"item\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/category\\\/code-examples\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/lodash-extend-can-skip-properties\\\/#listItem\",\"name\":\"Why lodash &#8220;extend&#8221; or &#8220;assignTo&#8221; can skip properties\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/lodash-extend-can-skip-properties\\\/#listItem\",\"position\":3,\"name\":\"Why lodash &#8220;extend&#8221; or &#8220;assignTo&#8221; can skip properties\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/category\\\/code-examples\\\/#listItem\",\"name\":\"Code Examples\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/#organization\",\"name\":\"Gary Sieling\",\"description\":\"Software Engineer\",\"url\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/author\\\/gary\\\/#author\",\"url\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/author\\\/gary\\\/\",\"name\":\"gary\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/lodash-extend-can-skip-properties\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0be925276d848ffe98a6a9dc8cf33e67?s=96&d=identicon&r=g\",\"width\":96,\"height\":96,\"caption\":\"gary\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/lodash-extend-can-skip-properties\\\/#webpage\",\"url\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/lodash-extend-can-skip-properties\\\/\",\"name\":\"Why lodash \\u201cextend\\u201d or \\u201cassignTo\\u201d can skip properties - Gary Sieling\",\"description\":\"If you look at the prototype for an object in the browser console, you will see some proprties rendered in a light purple: If you run \\\"_.extend\\\" on an object that has these, they will also disappear, like so: However, you definitely can reference them directly (this one gives me an error, but obviously it's\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/lodash-extend-can-skip-properties\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/author\\\/gary\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/author\\\/gary\\\/#author\"},\"datePublished\":\"2016-03-15T23:27:32+00:00\",\"dateModified\":\"2016-03-15T23:27:32+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/\",\"name\":\"Gary Sieling\",\"description\":\"Software Engineer\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.garysieling.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Why lodash \u201cextend\u201d or \u201cassignTo\u201d can skip properties - Gary Sieling","description":"If you look at the prototype for an object in the browser console, you will see some proprties rendered in a light purple: If you run \"_.extend\" on an object that has these, they will also disappear, like so: However, you definitely can reference them directly (this one gives me an error, but obviously it's","canonical_url":"https:\/\/www.garysieling.com\/blog\/lodash-extend-can-skip-properties\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.garysieling.com\/blog\/lodash-extend-can-skip-properties\/#blogposting","name":"Why lodash \u201cextend\u201d or \u201cassignTo\u201d can skip properties - Gary Sieling","headline":"Why lodash &#8220;extend&#8221; or &#8220;assignTo&#8221; can skip properties","author":{"@id":"https:\/\/www.garysieling.com\/blog\/author\/gary\/#author"},"publisher":{"@id":"https:\/\/www.garysieling.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"http:\/\/172.104.26.128\/wp-content\/uploads\/2016\/03\/img_56e8501706f49.png","@id":"https:\/\/www.garysieling.com\/blog\/lodash-extend-can-skip-properties\/#articleImage"},"datePublished":"2016-03-15T23:27:32+00:00","dateModified":"2016-03-15T23:27:32+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.garysieling.com\/blog\/lodash-extend-can-skip-properties\/#webpage"},"isPartOf":{"@id":"https:\/\/www.garysieling.com\/blog\/lodash-extend-can-skip-properties\/#webpage"},"articleSection":"Code Examples, javascript, lodash, react"},{"@type":"BreadcrumbList","@id":"https:\/\/www.garysieling.com\/blog\/lodash-extend-can-skip-properties\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.garysieling.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.garysieling.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.garysieling.com\/blog\/category\/code-examples\/#listItem","name":"Code Examples"}},{"@type":"ListItem","@id":"https:\/\/www.garysieling.com\/blog\/category\/code-examples\/#listItem","position":2,"name":"Code Examples","item":"https:\/\/www.garysieling.com\/blog\/category\/code-examples\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.garysieling.com\/blog\/lodash-extend-can-skip-properties\/#listItem","name":"Why lodash &#8220;extend&#8221; or &#8220;assignTo&#8221; can skip properties"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.garysieling.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.garysieling.com\/blog\/lodash-extend-can-skip-properties\/#listItem","position":3,"name":"Why lodash &#8220;extend&#8221; or &#8220;assignTo&#8221; can skip properties","previousItem":{"@type":"ListItem","@id":"https:\/\/www.garysieling.com\/blog\/category\/code-examples\/#listItem","name":"Code Examples"}}]},{"@type":"Organization","@id":"https:\/\/www.garysieling.com\/blog\/#organization","name":"Gary Sieling","description":"Software Engineer","url":"https:\/\/www.garysieling.com\/blog\/"},{"@type":"Person","@id":"https:\/\/www.garysieling.com\/blog\/author\/gary\/#author","url":"https:\/\/www.garysieling.com\/blog\/author\/gary\/","name":"gary","image":{"@type":"ImageObject","@id":"https:\/\/www.garysieling.com\/blog\/lodash-extend-can-skip-properties\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/0be925276d848ffe98a6a9dc8cf33e67?s=96&d=identicon&r=g","width":96,"height":96,"caption":"gary"}},{"@type":"WebPage","@id":"https:\/\/www.garysieling.com\/blog\/lodash-extend-can-skip-properties\/#webpage","url":"https:\/\/www.garysieling.com\/blog\/lodash-extend-can-skip-properties\/","name":"Why lodash \u201cextend\u201d or \u201cassignTo\u201d can skip properties - Gary Sieling","description":"If you look at the prototype for an object in the browser console, you will see some proprties rendered in a light purple: If you run \"_.extend\" on an object that has these, they will also disappear, like so: However, you definitely can reference them directly (this one gives me an error, but obviously it's","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.garysieling.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.garysieling.com\/blog\/lodash-extend-can-skip-properties\/#breadcrumblist"},"author":{"@id":"https:\/\/www.garysieling.com\/blog\/author\/gary\/#author"},"creator":{"@id":"https:\/\/www.garysieling.com\/blog\/author\/gary\/#author"},"datePublished":"2016-03-15T23:27:32+00:00","dateModified":"2016-03-15T23:27:32+00:00"},{"@type":"WebSite","@id":"https:\/\/www.garysieling.com\/blog\/#website","url":"https:\/\/www.garysieling.com\/blog\/","name":"Gary Sieling","description":"Software Engineer","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.garysieling.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Gary Sieling - Software Engineer","og:type":"article","og:title":"Why lodash \u201cextend\u201d or \u201cassignTo\u201d can skip properties - Gary Sieling","og:description":"If you look at the prototype for an object in the browser console, you will see some proprties rendered in a light purple: If you run &quot;_.extend&quot; on an object that has these, they will also disappear, like so: However, you definitely can reference them directly (this one gives me an error, but obviously it's","og:url":"https:\/\/www.garysieling.com\/blog\/lodash-extend-can-skip-properties\/","article:published_time":"2016-03-15T23:27:32+00:00","article:modified_time":"2016-03-15T23:27:32+00:00","twitter:card":"summary_large_image","twitter:title":"Why lodash \u201cextend\u201d or \u201cassignTo\u201d can skip properties - Gary Sieling","twitter:description":"If you look at the prototype for an object in the browser console, you will see some proprties rendered in a light purple: If you run &quot;_.extend&quot; on an object that has these, they will also disappear, like so: However, you definitely can reference them directly (this one gives me an error, but obviously it's"},"aioseo_meta_data":{"post_id":"3419","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2023-02-04 16:44:01","updated":"2026-07-06 01:38:53","ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.garysieling.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.garysieling.com\/blog\/category\/code-examples\/\" title=\"Code Examples\">Code Examples<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tWhy lodash \u201cextend\u201d or \u201cassignTo\u201d can skip properties\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.garysieling.com\/blog"},{"label":"Code Examples","link":"https:\/\/www.garysieling.com\/blog\/category\/code-examples\/"},{"label":"Why lodash &#8220;extend&#8221; or &#8220;assignTo&#8221; can skip properties","link":"https:\/\/www.garysieling.com\/blog\/lodash-extend-can-skip-properties\/"}],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/3419"}],"collection":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/comments?post=3419"}],"version-history":[{"count":0,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/3419\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=3419"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=3419"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=3419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}