# Shorter hands

**URL:** <https://forum.kirupa.com/t/shorter-hands/329349>\
**Category:** Uncategorized\
**Created:** [August 16, 2012, 12:05pm UTC](https://forum.kirupa.com/t/shorter-hands/329349 "2012-08-16T12:05:28Z")\
**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:** [August 16, 2012, 12:05pm UTC](https://forum.kirupa.com/t/shorter-hands/329349/1 "2012-08-16T12:05:28Z")

</div>

Hi - I have an array with some objects in them.

I want to shorten what im doing here in my code - can anyone help ‘reduce’ it for me…

```auto
var obj = {
number:1
}
var ary = [obj];
// that cool above - i wnat to streamline whas below..
var n = ary[0].number - 0.1;
ary[0].number = n;

console.log(n);

```

easy!?
