# Object.create()

**URL:** <https://forum.kirupa.com/t/object-create/328881>\
**Category:** web dev\
**Created:** [June 27, 2012, 3:10pm UTC](https://forum.kirupa.com/t/object-create/328881 "2012-06-27T15:10:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeancnicolas](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)\
**Post date:** [June 27, 2012, 3:10pm UTC](https://forum.kirupa.com/t/object-create/328881/1 "2012-06-27T15:10:35Z")

</div>

```auto
if (typeof Object.create !== "function") {
        Object.create = function (o) {
            function F() {}
            F.prototype = o;
            return new F();
        };
    }

```

is a function used by keith peters (bit101) when he writes his code, using object.create … do i really need this in my code?  
I dont know what it is doing
