function bindDescriptor(descriptor, target) {
  'use strict';
  var FIELDS = [ 'get', 'set', 'value' ];
  for (var field of FIELDS) {
    if ((field in descriptor) && (typeof descriptor[field] === 'function')) {
      descriptor[field] = descriptor[field].bind(target);
    }
  }
}
/**
 * <p>Bind any method or accessors in the given descriptor to the given target.</p>
 * @param {object} descriptor Descriptor as returned by <code>Object.getOwnPropertyDescriptor()</code>
 * @param {object} target The object that methods will be bound to
 */
Bind any method or accessors in the given descriptor to the given target.
@param {object} descriptor Descriptor as returned by Object.getOwnPropertyDescriptor()
@param {object} target The object that methods will be bound to
Bind any method or accessors in the given descriptor to the given target . @param { object } descriptor Descriptor as returned by Object . getOwnPropertyDescriptor () @param { object } target The object that methods will be bound to
function bindDescriptor(descriptor, target) {
  'use strict';
  var FIELDS = [ 'get', 'set', 'value' ];
  for (var field of FIELDS) {
    if ((field in descriptor) && (typeof descriptor[field] === 'function')) {
      descriptor[field] = descriptor[field].bind(target);
    }
  }
}
function bindDescriptor ( descriptor , target ) { 'use strict' ; var FIELDS = [ 'get' , 'set' , 'value' ] ; for ( var field of FIELDS ) { if ( ( field in descriptor ) && ( typeof descriptor [ field ] === 'function' ) ) { descriptor [ field ] = descriptor [ field ] . bind ( target ) ; } } }
<p>Bind any method or accessors in the given descriptor to the given target.</p>
 @param {object} descriptor Descriptor as returned by <code>Object.getOwnPropertyDescriptor()</code>
 @param {object} target The object that methods will be bound to
<p > Bind any method or accessors in the given descriptor to the given target . < / p > @param { object } descriptor Descriptor as returned by <code > Object . getOwnPropertyDescriptor () < / code > @param { object } target The object that methods will be bound to