Sha256: aba80fc4e328408c0a0e8195abf5bf6e877c64c94f8c4cbc60bb9557a6888c68

Contents?: true

Size: 626 Bytes

Versions: 3

Compression:

Stored size: 626 Bytes

Contents

import { InternalHelperReference } from '../utils/references';
/**
@module ember
*/
/**
  `log` allows you to output the value of variables in the current rendering
  context. `log` also accepts primitive types such as strings or numbers.

  ```handlebars
  {{log "myVariable:" myVariable }}
  ```

  @method log
  @for Ember.Templates.helpers
  @param {Array} params
  @public
*/
function log({ positional }) {
    /* eslint-disable no-console */
    console.log(...positional.value());
    /* eslint-enable no-console */
}
export default function (_vm, args) {
    return new InternalHelperReference(log, args.capture());
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
discourse-ember-source-3.6.0.0 dist/es/@ember/-internals/glimmer/lib/helpers/log.js
discourse-ember-source-3.5.1.1 dist/es/ember-glimmer/lib/helpers/log.js
discourse-ember-source-3.5.1.0 dist/dist/es/ember-glimmer/lib/helpers/log.js